Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-03-2012, 12:42 PM
|
#1
|
LQ Newbie
Registered: Jul 2012
Posts: 3
Rep:
|
I have a problem with /cgi-bin/
hello
I have a problem with /cgi-bin/
I worked on the server settings cgi
Was run cgi. Example
http://www.up7c.com/cgi-bin/test2.cgi
Can not run some cgi files
As an example
http://www.up7c.com/cgi-bin/cgienv.cgi
PHP Code:
Internal Server Error
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.
|
|
|
07-03-2012, 12:55 PM
|
#2
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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.
|
|
|
07-03-2012, 01:02 PM
|
#3
|
LQ Newbie
Registered: Jul 2012
Posts: 3
Original Poster
Rep:
|
tail -f /var/log/httpd/up7c.com-error_log
PHP Code:
[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!
|
|
|
07-03-2012, 01:08 PM
|
#4
|
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604
|
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.
|
|
|
07-04-2012, 04:31 AM
|
#5
|
LQ Newbie
Registered: Jul 2012
Posts: 3
Original Poster
Rep:
|
There exists ExecCGI
PHP Code:
<Directory "/home/xxx/public_html/cgi-bin/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
|
|
|
All times are GMT -5. The time now is 07:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|