Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Internal Server Error apache/httpd

by graff (Chancellor)
on Oct 17, 2015 at 02:50 UTC ( [id://1145172]=note: print w/replies, xml ) Need Help??


in reply to Internal Server Error apache/httpd

Your apache server is trying to execute a perl script that is supposed to exist at this path on the host file system:
/var/www/cgi-bin/form.pl
You should be able to do a shell login on the host, and see if that file exists in that directory. If you find that it's not there, you need to place a copy of your perl script there. If it is there, it might be having trouble because of unsuitable permission settings on the file (or on the cgi-bin directory, though this seems unlikely).

UPDATE: (forgot to mention) I've never seen/used CentOS, but if it's anything like unix/linux, then your script has some problems:

#!/user/bin/perl require("cgi-lib.pl");
The first line should be #!/usr/bin/perl (no "e" in "usr"). Also, the "cgi-bin.pl" file must either be in that same /var/www/cgi-bin directory, or else in one of the directories that your /usr/bin/perl has in its defauilt value for @INC.

Also, you have your last two close tags in the wrong order: </body> should be above </html>.

Replies are listed 'Best First'.
Re^2: Internal Server Error apache/httpd
by mwerner92 (Novice) on Oct 17, 2015 at 03:07 UTC
    Man... I knew it was something stupid. I just needed another pair of eyes on it. Where i had #!/user/bin/perl instead of #!/usr/bin/perl. I fixed it and everything works now, thanks for helping me out!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1145172]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-28 16:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found