LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 07-03-2012, 12:42 PM   #1
DrMix
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Rep: Reputation: Disabled
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

PHP Code:
Hello World
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
 
Old 07-03-2012, 12:55 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
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.
 
Old 07-03-2012, 01:02 PM   #3
DrMix
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
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] [noticecannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[
Tue Jul 03 18:57:28 2012] [error] [client 77.31.705.177File does not exist: /home/xxx/public_html/favicon.ico
[Tue Jul 03 18:57:28 2012] [noticecannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[
Tue Jul 03 18:57:29 2012] [noticecannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[
Tue Jul 03 18:57:29 2012] [error] [client 77.31.705.177Can'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.177BEGIN 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.177Premature end of script headerscgienv.cgi
[Tue Jul 03 18:57:59 2012] [noticecannot use a full URL in a 401 ErrorDocument directive --- ignoring!
[
Tue Jul 03 18:57:59 2012] [error] [client 77.31.705.177File does not exist: /home/xxx/public_html/favicon.ico
[Tue Jul 03 18:57:59 2012] [noticecannot use a full URL in a 401 ErrorDocument directive --- ignoring
 
Old 07-03-2012, 01:08 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
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.
 
Old 07-04-2012, 04:31 AM   #5
DrMix
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
There exists ExecCGI


PHP Code:
<Directory "/home/xxx/public_html/cgi-bin/">
AllowOverride None
Options 
+ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow
,deny 
Allow from all 
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
could not execute bin folder of a package from cgi bin script using python ashish hasani Linux - Server 1 04-05-2012 01:18 AM
Cant seem to run any cgi scripts in cgi-bin folder, confused? j.smith1981 Linux - Server 5 02-14-2011 06:38 AM
CGI to work out side of cgi-bin? crashedspine Linux - Newbie 13 09-02-2004 09:49 PM
Cgi-bin Llwyd Linux - Networking 3 03-01-2003 02:46 PM
http://www.burstnet.com/cgi-bin/ads/ad7954a.cgi/3980/RETURN-CODE rverlander LQ Suggestions & Feedback 1 06-07-2002 08:35 AM


All times are GMT -5. The time now is 06:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration