500 Internal Server Error when visiting domain.ext/cpanel, whm

nixgurus

Member
Feb 16, 2011
20
0
51
Google
cPanel Access Level
Root Administrator
Hello,

I am facing an error when some one try to open http://domain.ext/cpanel or http://domain.ext/whm it shows 500 Internal Server Error.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 Server at www.xxxxxxx.com Port 80
However when we type the port number ie; 2082, 2086 etc.. it works fine. Don't know what's the problem. Can you help me?
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
Watch the suexec_log while trying to use the /cpanel alias. Type the following command at the shell command prompt:

Code:
# tail -f /usr/local/apache/logs/suexec_log
Press Ctrl+C to stop the tail command. Also do the same for the error_log while trying to browse the /cpanel alias in your browser:

Code:
# tail -f /usr/local/apache/logs/error_log
An internal server error will cause an entry to be written to one of the two log files I mentioned. Also, check the permissions and ownerships on the /usr/local/cpanel/cgi-sys directory, and its contents. Here is a directory listing from a known-working server, showing the correct ownerships and permissions:

Code:
# ls -alh /usr/local/cpanel/cgi-sys/
total 12M
drwxr-x--x  2 root wheel 4.0K Feb 14 22:16 ./
drwx--x--x 43 root wheel 4.0K Feb 16 22:22 ../
-rwxr-xr-x  1 root wheel   25 Mar 22  2006 addalink.cgi*
-rwxr-xr-x  1 root wheel  19K Nov 11 23:49 cgiecho*
-rwxr-xr-x  1 root wheel  19K Nov 11 23:49 cgiemail*
-rwxr-xr-x  1 root wheel 170K Aug 26  2008 Count.cgi*
-rwxr-xr-x  1 root wheel 1.1K Mar 22  2006 countedit.cgi*
-rw-r--r--  1 root wheel 1.7K Feb 14 22:15 .cpanelsync
-rw-r--r--  1 root wheel 2.0K Feb 14 22:15 .cpanelsync.md5s
-rw-r--r--  1 root wheel    0 Feb 14 22:15 .cpanelsync.new
-rwxr-xr-x  1 root wheel 1.2M Feb  1 22:06 defaultwebpage.cgi*
-rwxr-xr-x  1 root wheel  26K Nov  8 22:39 domainredirect.cgi*
-rwxr-xr-x  1 root wheel 191K Nov  8 22:39 entropybanner.cgi*
-rwxr-xr-x  1 root wheel 3.1K Sep  7 21:55 entropybanner.cgi-wrap*
-rwxr-xr-x  1 root wheel 5.8K Dec 16  2009 entropysearch.cgi*
-rwxr-xr-x  4 root wheel 1.1M Dec 28 22:00 formmail.cgi*
-rwxr-xr-x  4 root wheel 1.1M Dec 28 22:00 FormMail.cgi*
-rwxr-xr-x  1 root wheel 1.1M Dec 28 22:00 FormMail-clone.cgi*
-rwxr-xr-x  4 root wheel 1.1M Dec 28 22:00 formmail.pl*
-rwxr-xr-x  4 root wheel 1.1M Dec 28 22:00 FormMail.pl*
-rwxr-xr-x  1 root wheel 261K Nov  8 22:40 guestbook.cgi*
-rwxr-xr-x  1 root wheel 4.5K Nov  8 22:39 helpdesk.cgi*
-rw-r--r--  1 root wheel    0 Dec 16  2009 index.html
-rwxr-xr-x  1 root wheel 945K Dec 28 22:00 mchat.cgi*
-rwxr-xr-x  1 root wheel 1.2M Feb  1 22:06 movingpage.cgi*
-rwxr-xr-x  1 root wheel  29K Nov  8 22:40 randhtml.cgi*
-rwxr-xr-x  1 root wheel 3.1K Sep  7 21:55 randhtml.cgi-wrap*
-rwxr-xr-x  1 root wheel   25 Mar 22  2006 realhelpdesk.cgi*
-rwxr-xr-x  1 root wheel   16 Feb  6  2008 realsignup.cgi*
-rwxr-xr-x  6 root wheel  302 Dec 16  2009 redirect.cgi*
-rwxr-xr-x  1 root wheel  11K Nov  8 22:39 scgiwrap*
-rwxr-xr-x  1 root wheel 4.6K Nov  8 22:39 signup.cgi*
-rwxr-xr-x  6 root wheel  302 Dec 16  2009 sredirect.cgi*
-rwxr-xr-x  1 root wheel 1.2M Feb  1 22:06 suspendedpage.cgi*
-rwxr-xr-x  6 root wheel  302 Dec 16  2009 swhmredirect.cgi*
-rwxr-xr-x  1 root wheel 1.6M Feb  1 22:06 templatepreview.cgi*
-rwxr-xr-x  6 root wheel  302 Dec 16  2009 universal-redirect.cgi*
-rwxr-xr-x  6 root wheel  302 Dec 16  2009 whmredirect.cgi*
-rwxr-xr-x  6 root wheel  302 Dec 16  2009 wredirect.cgi*
Timestamps may vary, but ownerships and permissions need to be those shown above.