Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SuSE Pro 8.1 and CGI Programs

Status
Not open for further replies.

tbohon

Programmer
Apr 20, 2000
293
US
I'm having a bit of a problem with my SuSE 8.1 install and running CGI programs (in Perl, of course <g>). Seems that it either can't find the xxx.cgi file or it asks for the program to use - but doesn't recognize /usr/bin/perl when I choose it.

Am wondering if I'm missing something. I've been putting my .html file (which has a form calling the .cgi as it's action) in /srv/ and addressing it as . Meanwhile the actual .cgi program is in the cgi-bin directory (/srv/ and I've called it with an explicit path ( Since my system is a one-user, non-networked system I changed permissions on /srv/ 777 - wouldn't do that if anyone else was able to access the system, of course, but it's just me here.

So - any ideas on what I'm doing wrong? Am I mis-addressing things somehow? I can send the two files I have it that will help anyone - didn't want to cut and paste it here unless it's needed.

Thanks in advance.

Tom
 
What's the exact error? At the top of the cgi script, there's probably a line similar to this:
#!/usr/bin/perl

Does it reflect the correct path to the perl binary? Check out the output of 'which perl', it'll show you if it finds an executable file named perl anywhere in your $PATH.

Are you sure the webserver is properly setup? With a ScriptAlias for the cgi-bin directory and all? --
JR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top