LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > DocumentRoot/path problem

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2011, 08:22 AM
st2410 st2410 is offline
New Member
 
Join Date: Apr 2011
Posts: 6
Default DocumentRoot/path problem

Hello,

I've recently switched from Apache to LiteSpeed Web Server. However, after switching to LiteSpeed, my sites have stopped working. I'm using cPanel on CentOS 5.5.

I checked the error logs and it seems as though my DocumentRoot has changed. The errors are similar to the one below:

[xxx.xxx.xxx.xxx:60411-0#APVH_xxx.xxx.xxx.xxx_host.name.com] File not found [/usr/local/apache/htdocs/images/logo.png]

Looks like it's trying to find files at /usr/local/apache/htdocs instead of /home/username/public_html/

Would you happen to know how to fix this issue?

Thank you!

Last edited by st2410; 04-17-2011 at 03:01 PM..
Reply With Quote
  #2  
Old 04-17-2011, 06:15 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Looks likely litespeed not installed properly.

can you re-install litespeed 4.1, follow steps described in
http://www.litespeedtech.com/support...pache:ezcpanel
How to convert your cPanel server to LiteSpeed in 20 minutes

note:set port offset, say 2000. so can run apache and litespeed at the same time and can do the comparison.
Reply With Quote
  #3  
Old 04-17-2011, 09:17 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
I think you were using standard edition with 5 vhosts limits.
Reply With Quote
  #4  
Old 04-18-2011, 03:41 AM
st2410 st2410 is offline
New Member
 
Join Date: Apr 2011
Posts: 6
I've re-installed LiteSpeed again using that guide and the error is still the same. I've also tried uninstalling LiteSpeed + the WHM/cPanel plugin and re-installing again but it doesn't work either.

I changed the port offset to 2000 and Apache works fine but LiteSpeed doesn't. You can check it out here: :80 (Apache) and :2080 (LiteSpeed)

I'm using the 4 CPU Enterprise Edition of LiteSpeed.

Any ideas as to what the problem could be?

Thank you!

Last edited by st2410; 04-18-2011 at 05:02 PM..
Reply With Quote
  #5  
Old 04-18-2011, 04:04 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
I tested 1 .js file:
http://46.4.95.1 4 5/~ih o neyd/comp.../js/default.js
http://46.4.95.1 4 5:2080/~ih o neyd.../js/default.js

both are displaying fine.

the problem is when accessing 46.4.95.1 4 5:2080/~ih o neyd/, is 404 Not Found, and ~ih o neyd/ is removed from all subsequent request URLs. so above .js became 46.4.95.1 4 5:2080/components/com_zoo/assets/js/default.js, hence 404 Not Found error again, looks DocumentRoot changed as you reported.

2 questions:
1.how about other accounts?
2.how about 46.4.95.1 4 5:2080/~ih o neyd/phpinfo.php ? does it display correctly?

Last edited by NiteWave; 04-18-2011 at 04:15 AM..
Reply With Quote
  #6  
Old 04-18-2011, 04:11 AM
st2410 st2410 is offline
New Member
 
Join Date: Apr 2011
Posts: 6
Hi, you can test the phpinfo now. It works fine when you access that file.

As for other accounts, they have the same errors.

And could it be possible if you remove the live links to my server please? I just don't want it publicly displayed.

Thank you!
Reply With Quote
  #7  
Old 04-18-2011, 04:31 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Hi, I've modified the URLs in my previous post following your way.

what's your litespeed version? and the time stamp of /usr/local/lsws/bin/lshttpd.4.x?
Reply With Quote
  #8  
Old 04-18-2011, 04:41 AM
st2410 st2410 is offline
New Member
 
Join Date: Apr 2011
Posts: 6
My LiteSpeed version is 4.0.20, which was what the WHM/cPanel plugin installed. The timestamp of lshttpd.4.0.20 is 1186384 Apr 18 20:22.
Reply With Quote
  #9  
Old 04-18-2011, 04:58 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
forgot to mention: I confirmed both :80/~xxx/phpinfo.php and :2080/~xxx/phpinfo.php are working fine.

before the last resolution(login your server), can you try:

1.Force Reinstall 4.0.20 (in lsws admin web console)
2.Enable EasyApache Integration (cPanel lsws plug-in)
3.Build Matching PHP Binary
(even see "No action needed for PHP version 5.2.17" message, go ahead anyway)
4. after build done, restart lsws.
Reply With Quote
  #10  
Old 04-18-2011, 05:11 AM
st2410 st2410 is offline
New Member
 
Join Date: Apr 2011
Posts: 6
Hi,

I've just performed all the steps listed above and it still isn't working. Apache works fine but LiteSpeed doesn't. Strange because LiteSpeed should be reading Apache's conf file so there shouldn't be a problem.

Would you like root access to the server?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:13 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.