Click to See Complete Forum and Search --> : CGI Wanna Be
Casey Mac
06-18-2002, 09:10 PM
Greetings,
First love the site and am going hard core Linux!!
On to business. I am trying to learn how to enable a CGI script that i downloaded. I am using rh7.3 so \var\www\cgi-bin. Im not sure if i have to start a service or do i add a line to httpd.conf. Please help
Thanks in advance
mychl
06-19-2002, 09:59 AM
Did you try accessing the cgi script through a browser?
yourdomain.com/cgi-bin/script.cgi
If it diesn't work, make sure it's executable chmod 755... open httpd.conf and search for cgi, check out every result and read above and below. That should give you some pretty big clues as to what you need to do.
GL
Casey Mac
06-20-2002, 12:05 PM
Thanks for your quick responce. What i found is that in RH7.3 the path for the cgi bin is in a different spot that is indicated in the Httpd.conf file that i was playing with. Once i rem out the line that basically said that Cgi-bin could be executed from any where i at least got this error.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost 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.
--------------------------------------------------------------------------------
Apache/1.3.23 Server at 127.0.0.1 Port 80
I checked to make sure that chmod 755 was inplace and it was. What do you think my problem is?
Casey
PhatBarren
06-21-2002, 11:10 AM
Do you have perl installed???
Casey Mac
06-21-2002, 11:45 AM
Yes, i believe so. I did a which perl and it came up /usr/bin/perl. My apologies for not really knowing the correct command to find out if its installed.
JasonC
06-21-2002, 02:58 PM
Check your web log and dig up the specific errors, that would really help or post the script we can see if it has a problem.
Casey Mac
06-22-2002, 11:19 AM
This is what it says
192.168.0.25 - - [22/Jun/2002:08:55:54 -0600] "GET /cgi-bin/birdseye.cgi?program=6 HTTP/1.1" 500 603 "http://192.168.0.11/birdseye.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)"
also this is what i have on the folder
drwxr-xr-x 2 root root 1024 Jun 19 15:18 cgi-bin
drwxr-xr-x 5 root root 1024 Jun 19 15:06 html
This is what i have on the folder
-rwxr-xr-x 1 34804 188 7784 Jun 20 19:34 birdseye.cgi
please advise
Casey
Thanks in advance