Hai, I was trying to run a CGI cript that proccessed people's information... Well anyway I kept getting the very unhelpful Internal Server Error So I decided to make a stupid script that merely displayed "Works" To the screen. I contacted my webserver (1and1.com) they told me perl scripts could be run anywhere from the server as long as they had a .pl/.cgi extension and were chmoded to 755. 1and1 also said that the path for perl was /usr/bin/perl so the first line of the script would be #!/usr/bin/perl. I made the file:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Works";
I saved the file as display.cgi, I put it on my webserver under /AxE/ directory chmoded to 755 and it still gave me "Internal Server Error" I then just to check made a cgi-bin folder and put it there and still the same error... I'm going crazy and am out of ideas, if anyone could help they would be garanteed a spot as my hero
PS: I also tried saving it as .pl not chmoding and i also tried chmoding while it was in the cgi-bin directory which I was told is not needed. I also tried googling hello world examples incase maybe I had a coding bug... :-\
PSS: I posted this on another forum and basicly recieved no help, well i guess i learned that merely creating a cgi-bin folder does nothing, and i knew this already however I thought that my webserver would see the folder and set it up as a ScriptAllias. another thing that should be noted is i double adn triple checked and on my webserver it states that scripts can be put anywhere as long as they have a .pl or .cgi extension are uploaded under ascii mode and are chmoded to 755. Infact my acnt didn't even come with a cgi-bin folder.