View Single Post
Old 02-28-2004, 04:46 AM  
Nathan
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 3,108
hi hanii

I do not have access to any rhel es 3.0 box to test this, but the problem very likely is because the script is not really executable.

Not sure if you have shell access, but if you have, then go and login to the server, go to the dir the script is at and run it manually.

eg: if the script is called helloworld.cgi then type: ./helloworld.cgi

See if that works. If that works, make sure the ending is .cgi and not .pl, since Options ExecCGI would only allow .cgi to execute as far as I remember.

If it does NOT work (which is very likely) then your path to perl will be wrong. It will say something like:
bash-2.0: /usr/bin/perl: No such file or directory

Easiest way to figure this out is typing:
whereis perl
on the prompt. This should give you the real location of perl on the server. It might also be perl5, ie:
whereis perl5

The error might also be a perl error. I do not see a perl error in the code you posted, but it might be a wrong upload like devmug suggested, meaning you have to upload the file in ASCII mode!


If you do NOT have shell access to the server, contact your host and ask them what the path to perl is, since that is the most likely error.
__________________
"Think about it a little more and you'll agree with me, because you're smart and I'm right."
- Charlie Munger
Nathan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote