Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, 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.
First things first, what does your error log tell you?
Take a look at /var/log/httpd/error_log and look for the ERROR reported. Post it here if you want some input from the community, but this is going the be the best place to look to tell you what is misconfigured.
[root@server ~]# tail -f /var/log/httpd/up7c.com-error_log [Tue Jul 03 18:57:28 2012] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! [Tue Jul 03 18:57:28 2012] [error] [client 77.31.705.177] File does not exist: /home/xxx/public_html/favicon.ico [Tue Jul 03 18:57:28 2012] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! [Tue Jul 03 18:57:29 2012] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! [Tue Jul 03 18:57:29 2012] [error] [client 77.31.705.177] Can't locate CGI.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /home/xxx/public_html/cgi-bin/cgienv.cgi line 5. [Tue Jul 03 18:57:29 2012] [error] [client 77.31.705.177] BEGIN failed--compilation aborted at /home/xxx/public_html/cgi-bin/cgienv.cgi line 5. [Tue Jul 03 18:57:29 2012] [error] [client 77.31.705.177] Premature end of script headers: cgienv.cgi [Tue Jul 03 18:57:29 2012] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! [Tue Jul 03 18:57:29 2012] [error] [client 77.31.705.177] File does not exist: /home/xxx/public_html/favicon.ico [Tue Jul 03 18:57:29 2012] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! [Tue Jul 03 18:57:56 2012] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! [Tue Jul 03 18:57:56 2012] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! [Tue Jul 03 18:57:56 2012] [error] [client 77.31.705.177] File does not exist: /home/xxx/public_html/favicon.ico [Tue Jul 03 18:57:56 2012] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! [Tue Jul 03 18:57:58 2012] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! [Tue Jul 03 18:57:58 2012] [error] [client 77.31.705.177] Can't locate CGI.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /home/xxx/public_html/cgi-bin/cgienv.cgi line 5. [Tue Jul 03 18:57:58 2012] [error] [client 77.31.705.177] BEGIN failed--compilation aborted at /home/xxx/public_html/cgi-bin/cgienv.cgi line 5. [Tue Jul 03 18:57:58 2012] [error] [client 77.31.705.177] Premature end of script headers: cgienv.cgi [Tue Jul 03 18:57:59 2012] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! [Tue Jul 03 18:57:59 2012] [error] [client 77.31.705.177] File does not exist: /home/xxx/public_html/favicon.ico [Tue Jul 03 18:57:59 2012] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
Ah the premature end of script headers error. This one can make some people pull their hair out as it has many possible causes and the error is really generic. However, with these symptoms I would bet its something as simple as not having the +ExecCGI option enabled for the Directory/Vhost.
Can you take a look at the Options directive for your virtual host and make sure +ExecCGI is listed? If it's not add it and restart apache.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.