Cpanel issues

From Cheatsheet
Jump to navigation Jump to search

The failboat we call CPANEL

LOGS LOCATIONS

vim /usr/local/cpanel/logs/error_log

Cpanel gives this error

[a fatal error or timeout occurred while processing this directive] 

This should help you out, move the following file to a different location and or check permissions on the /home/(username)/.cpanel folder should be user:user

mv /home/(username)/.cpanel/*cache 

http://ipaddress/~username/

Provides the following error.

Warning: Unknown: open_basedir restriction in effect. File(/home/hilariou/public_html/index.php) is not within the allowed path(s): (/usr/local/lp:/proc:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

Edit this:

vim /usr/local/apache/conf/httpd.conf

And move this to the post section of the conf.

Include "/usr/local/lp/configs/httpd/vhost.conf

UPCP Errors

wrong distro version

If you see this error:

[20131116.234306] E Running `/usr/local/cpanel/scripts/updatenow --upcp --log=/var/cpanel/updatelogs/update.1384663384.log` failed, exited with code 25 (signal = 0)

=> Log closed Sat No

then you run the command out of it and get the following error:

/usr/local/cpanel/scripts/updatenow --upcp --log=/var/cpanel/updatelogs/update.13846621122.log
Only Distro versions 5 and 6 supported in this version of cPanel & WHM at /usr/local/cpanel/scripts/updatenow.static-cpanelsync line 20033.

You need to check the /var/cpanel/sysinfo.config and make sure all of the info is correct. Should be simular to the following:

[root@host] ~ >> cat /var/cpanel/sysinfo.config

# This values in this file are calculated and updated if necessary nightly. If you wish to override
# these values, populate lock= with a comma delimited list of keys you don't want updated.
# This will allow you to change those values to suit your needs.
#
# Example: if you set lock like this, then rpm_dist and rpm_arch will not be updated nightly:
# lock=rpm_dist,rpm_arch
#
ises=2
lock=
release=5.9
rpm_arch=x86_64
rpm_dist=centos
rpm_dist_ver=5

once that file has been corrected it should solve the issue.