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.