i'm having a problem trying to log into a cpanel account I just transferred. I'm able to log in, but am served just a white blank page. So I looked into the error log for cpanel and find out that it can't find the httpd.conf file. For giggles, I even change the permissions of httpd.conf to 755 .
# file: usr/local/apache/conf/httpd.conf
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
I have no problem logging into root's cpanel area.
What is going on and how do I fix this? See the logs below for more information.
/usr/local/cpanel/logs/access_log
216.120.133.129 - root [05/Jan/2007:18:38:12 -0500] "GET /scripts/command HTTP/1.1" 0 "http://server2.web-marketing-concepts.com:2086/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9pre) Gecko/20061219 Firefox/1.5.0.9 Flock/0.7.9.1"
216.120.133.129 - root [05/Jan/2007:18:38:13 -0500] "GET /scripts/command?PFILE=main HTTP/1.1" 0 "http://server2.web-marketing-concepts.com:2086/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9pre) Gecko/20061219 Firefox/1.5.0.9 Flock/0.7.9.1"
216.120.133.129 - memoryma [05/Jan/2007:18:42:19 -0500] "GET /frontend/x/index.html HTTP/1.1" 200 0 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9pre) Gecko/20061219 Firefox/1.5.0.9 Flock/0.7.9.1"
/usr/local/cpanel/logs/error_log
[email protected] [/scripts]# tail -f /usr/local/cpanel/logs/error_log
(internal death) Fri Jan 5 18:42:19 2007 [4779] error: Unable to locate httpd.conf at /usr/local/cpanel/Cpanel/HttpUtils.pm line 64.
Cpanel::HttpUtils::find_httpconf() called at cpanel.pl line 271
Unable to locate httpd.conf at /usr/local/cpanel/Cpanel/HttpUtils.pm line 64.
/var/log/messages
Jan 5 18:40:01 server2 crond(pam_unix)[4753]: session opened for user webhost by (uid=0)
Jan 5 18:40:01 server2 crond(pam_unix)[4751]: session closed for user root
Jan 5 18:40:01 server2 crond(pam_unix)[4753]: session closed for user webhost
Jan 5 18:40:05 server2 crond(pam_unix)[4752]: session closed for user root
Jan 5 18:45:01 server2 crond(pam_unix)[4782]: session opened for user root by (uid=0)
Jan 5 18:45:01 server2 crond(pam_unix)[4785]: session opened for user root by (uid=0)
Jan 5 18:45:01 server2 crond(pam_unix)[4788]: session opened for user webhost by (uid=0)
Jan 5 18:45:01 server2 crond(pam_unix)[4785]: session closed for user root
Jan 5 18:45:01 server2 crond(pam_unix)[4788]: session closed for user webhost
Jan 5 18:45:04 server2 crond(pam_unix)[4782]: session closed for user root
Here is the area of the code where it complains it attempts to find the config file.
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 '';
}
# file: usr/local/apache/conf/httpd.conf
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
I have no problem logging into root's cpanel area.
What is going on and how do I fix this? See the logs below for more information.
/usr/local/cpanel/logs/access_log
216.120.133.129 - root [05/Jan/2007:18:38:12 -0500] "GET /scripts/command HTTP/1.1" 0 "http://server2.web-marketing-concepts.com:2086/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9pre) Gecko/20061219 Firefox/1.5.0.9 Flock/0.7.9.1"
216.120.133.129 - root [05/Jan/2007:18:38:13 -0500] "GET /scripts/command?PFILE=main HTTP/1.1" 0 "http://server2.web-marketing-concepts.com:2086/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9pre) Gecko/20061219 Firefox/1.5.0.9 Flock/0.7.9.1"
216.120.133.129 - memoryma [05/Jan/2007:18:42:19 -0500] "GET /frontend/x/index.html HTTP/1.1" 200 0 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9pre) Gecko/20061219 Firefox/1.5.0.9 Flock/0.7.9.1"
/usr/local/cpanel/logs/error_log
[email protected] [/scripts]# tail -f /usr/local/cpanel/logs/error_log
(internal death) Fri Jan 5 18:42:19 2007 [4779] error: Unable to locate httpd.conf at /usr/local/cpanel/Cpanel/HttpUtils.pm line 64.
Cpanel::HttpUtils::find_httpconf() called at cpanel.pl line 271
Unable to locate httpd.conf at /usr/local/cpanel/Cpanel/HttpUtils.pm line 64.
/var/log/messages
Jan 5 18:40:01 server2 crond(pam_unix)[4753]: session opened for user webhost by (uid=0)
Jan 5 18:40:01 server2 crond(pam_unix)[4751]: session closed for user root
Jan 5 18:40:01 server2 crond(pam_unix)[4753]: session closed for user webhost
Jan 5 18:40:05 server2 crond(pam_unix)[4752]: session closed for user root
Jan 5 18:45:01 server2 crond(pam_unix)[4782]: session opened for user root by (uid=0)
Jan 5 18:45:01 server2 crond(pam_unix)[4785]: session opened for user root by (uid=0)
Jan 5 18:45:01 server2 crond(pam_unix)[4788]: session opened for user webhost by (uid=0)
Jan 5 18:45:01 server2 crond(pam_unix)[4785]: session closed for user root
Jan 5 18:45:01 server2 crond(pam_unix)[4788]: session closed for user webhost
Jan 5 18:45:04 server2 crond(pam_unix)[4782]: session closed for user root
Here is the area of the code where it complains it attempts to find the config file.
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 '';
}