|
|

05-10-2007, 11:45 AM
|
|
Member
|
|
Join Date: May 2007
Posts: 25
|
|
cPanel Login Broken After Litespeed Install
After installing litespeed on my cPanel server I now get a blank screen when anyone tries to logint to cpanel both on 2082 or 2083.
Here is the error from the cpanel error_log
Code:
Thu May 10 13:40:57 2007 info [Cpanel::Filesys]: Unable to retrieve disk usage information.
Thu May 10 13:40:57 2007 info [Cpanel::Filesys]: at /usr/local/cpanel/Cpanel/Filesys.pm line 33
Cpanel::Filesys::disk_space_check('/') called at cpanel.pl line 258
Thu May 10 13:40:57 2007 info [Cpanel::Filesys]: Unable to retrieve disk usage information.
Thu May 10 13:40:57 2007 info [Cpanel::Filesys]: at /usr/local/cpanel/Cpanel/Filesys.pm line 33
Cpanel::Filesys::disk_space_check('/home/friday') called at cpanel.pl line 258
(internal death) Thu May 10 13:40:57 2007 [28225] error: Unable to locate httpd.conf at /usr/local/cpanel/Cpanel/HttpUtils.pm line 64.
Cpanel::HttpUtils::find_httpconf() called at cpanel.pl line 274
Unable to locate httpd.conf at /usr/local/cpanel/Cpanel/HttpUtils.pm line 64.
Looks like it cant see the httpd.conf but the location has now changed any.
Got any ideas?
|

05-10-2007, 12:03 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
It looks like a permission issue, httpd.conf should be located /usr/local/apache/conf/httpd.conf.
Where LSWS has been installed to? /opt/lsws or /usr/local/lsws is the recommended location. If you install it to /usr/local/apache, permission will be messed up, you need to restore the default permission by referencing permission of /usr/local/apache on another server.
|

05-10-2007, 12:08 PM
|
|
Member
|
|
Join Date: May 2007
Posts: 25
|
|
|
The permissions are the exact same as a cPanel server running apache and the exact same as another machine running cPanel and LiteSpeed.
Nohting has changed but this morning it seemed the login screen on cPanel is just blank now and I got the above error from the cPanel errorlog.
|

05-10-2007, 12:16 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
If you install LSWS to /usr/local/apache, the permission and ownership of conf/ and a few other directories will be messed up. not /usr/local/apache itself.
|

05-10-2007, 12:19 PM
|
|
Member
|
|
Join Date: May 2007
Posts: 25
|
|
|
Sorry for not specifying in the previous post, but it was installed to: /opt/lsws not /usr/local/apache/
All the permissions for /usr/local/apache and /usr/local/apache/conf look identical to the other servers. I will look again and see what I can find.
|

05-10-2007, 12:23 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
OK, then I have no clue what happened, pretty strange.
what is the code looks like at /usr/local/cpanel/Cpanel/HttpUtils.pm line 64?
|

05-10-2007, 02:54 PM
|
|
Member
|
|
Join Date: May 2007
Posts: 25
|
|
line 65 is the Unable to locate httpd.conf
Code:
sub find_httpconf {
my ( @LOC, $loc );
if ( -e '/var/cpanel/apache2' ) {
@LOC = ( '/usr/local/apache2/conf/httpd.conf', '/etc/httpd/conf/httpd.conf', '/usr/local/etc/apache2/apache.conf' );
}
else {
@LOC = ( '/usr/local/apache/conf/httpd.conf', '/etc/httpd/conf/httpd.conf', '/usr/local/etc/apache/apache.conf' );
}
foreach $loc (@LOC) {
if ( -e $loc ) { return $loc; }
}
die 'Unable to locate httpd.conf';
return '';
}
Also, we are running litespeed just fine on http://w10.eleven2.com and you will see that default page works fine, the stats work fine on this server, and so does cPanel.
However on http://w2.eleven2.com cPanel is not working, stats are not working, nor is the default hostname page.
|

05-10-2007, 03:07 PM
|
|
Member
|
|
Join Date: May 2007
Posts: 25
|
|
|
I just wanted to update and let you know that it was the permissions of the apache directory were 744 and not 755, and once I fixed it all worked fine.
I am not sure how this changed, but will look again if it occurs again.
|

05-10-2007, 03:18 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
Glad you find the problem. 
cPanel has scripts to secure file system, no sure it is related or not.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 09:38 AM.
|
|