HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   Internal Server Error 500 cgi script (http://www.howtoforge.com/forums/showthread.php?t=2421)

mphayesuk 7th February 2006 13:02

Internal Server Error 500 cgi script
 
I am trying to run a cgi script and get a 500 internal server error, the script is a very simple contact us form that I got off the internet and amended a couple of variable so that the email comes to me, can someone take a look and see if I have done anything simple wrong.

www.touch-one.co.uk/contactus.html

www.touch-one.co.uk/cgi-bin/novice.cgi

I have set the cgi script to be 777 to see if that made any difference but no joy.

Help someone.

mphayesuk 7th February 2006 13:08

Just tried the test files by falco and the .pl file does not work either... where do I start to find out what the problem is.

Thanks

badben 7th February 2006 15:42

Is the cgi file in the cgi-bin?

Only files in the cgi-bin will run as a cgi file.

mphayesuk 7th February 2006 15:56

They will work if I turn off suexec.... which I dont want to do.... So now its a question of what did I do wrong/how do I fix apache so that suexec will work with /home/www instead of the default location.

falko 7th February 2006 18:58

Quote:

Originally Posted by mphayesuk
They will work if I turn off suexec.... which I dont want to do.... So now its a question of what did I do wrong/how do I fix apache so that suexec will work with /home/www instead of the default location.

If your CGI scripts are outside suExec's document root, then you must recompile suExec - there's no other solution...

mphayesuk 7th February 2006 21:30

OK.. so how do I re-compile it....

falko 8th February 2006 22:53

I could only find docs for Fedora and RedHat, however you might get the idea:
http://www.matthewtoledo.com/help/20..._recompile.php
http://www.cosmicscripts.com/servers/suexec.html
http://www.fedoraforum.org/forum/sho...ghlight=suexec


All times are GMT +2. The time now is 12:10.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.