Click to See Complete Forum and Search --> : running CGI in Linux


RSparkyC
11-19-2002, 05:04 PM
I am having trouble getting my CGI scripts to work in linux. I try this:

#!/usr/bin/perl

print "Content-type: text/html\n\n";
print "Hello\n";

and I get a 500 Internal Server Error. I am running an apache webserver and have the latest version of perl installed. I know that my path to perl is right, can it be something with permissions? I looked at the cgi and it's rwxr-xr-x (although if i try to chmod it to something like 777 it stays the same...)
Any help in the mater would be great.

RSparkyC
11-19-2002, 08:39 PM
Ok, I fixed it...kinda...

I have my webserver running off of a FAT32 partition in Linux. When I set up my config file to run CGI scripts on the Linux partition, everything worked fine, but as soon as I changed it back to the FAT32, it quit. Do you know of any way i can run stuff from the FAT32 partition? Or should I just move the CGIs to the Linux partition?

Thanks

EscapeCharacter
11-20-2002, 12:53 AM
Originally posted by RSparkyC
Ok, I fixed it...kinda...

I have my webserver running off of a FAT32 partition in Linux. When I set up my config file to run CGI scripts on the Linux partition, everything worked fine, but as soon as I changed it back to the FAT32, it quit. Do you know of any way i can run stuff from the FAT32 partition? Or should I just move the CGIs to the Linux partition?

Thanks

i dont know if you cant but why would you want to?

RSparkyC
11-20-2002, 07:02 AM
The reason is that i swich between Windows XP and Linux and i wanted to run the webserver in each os. I know that fat32 is readable in both linux and windows...so i put it there