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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > cPanel Login Broken After Litespeed Install

Reply
 
Thread Tools Display Modes
  #1  
Old 05-10-2007, 11:45 AM
Rodney-E2 Rodney-E2 is offline
Member
 
Join Date: May 2007
Posts: 25
Default 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?
Reply With Quote
  #2  
Old 05-10-2007, 12:03 PM
mistwang mistwang is offline
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.
Reply With Quote
  #3  
Old 05-10-2007, 12:08 PM
Rodney-E2 Rodney-E2 is offline
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.
Reply With Quote
  #4  
Old 05-10-2007, 12:16 PM
mistwang mistwang is offline
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.
Reply With Quote
  #5  
Old 05-10-2007, 12:19 PM
Rodney-E2 Rodney-E2 is offline
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.
Reply With Quote
  #6  
Old 05-10-2007, 12:23 PM
mistwang mistwang is offline
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?
Reply With Quote
  #7  
Old 05-10-2007, 02:54 PM
Rodney-E2 Rodney-E2 is offline
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.
Reply With Quote
  #8  
Old 05-10-2007, 03:07 PM
Rodney-E2 Rodney-E2 is offline
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.
Reply With Quote
  #9  
Old 05-10-2007, 03:18 PM
mistwang mistwang is offline
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.
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 12:22 AM.



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