cPanel Login Broken After Litespeed Install

Discussion in 'Apache Migration/Compatibility' started by Rodney-E2, May 10, 2007.

  1. Rodney-E2

    Rodney-E2 New Member

    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?
  2. mistwang

    mistwang LiteSpeed Staff

    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.
  3. Rodney-E2

    Rodney-E2 New Member

    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.
  4. mistwang

    mistwang LiteSpeed Staff

    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.
  5. Rodney-E2

    Rodney-E2 New Member

    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.
  6. mistwang

    mistwang LiteSpeed Staff

    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?
  7. Rodney-E2

    Rodney-E2 New Member

    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.
  8. Rodney-E2

    Rodney-E2 New Member

    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.
  9. mistwang

    mistwang LiteSpeed Staff

    Glad you find the problem. :)
    cPanel has scripts to secure file system, no sure it is related or not.

Share This Page