Internal Server Error 500 cgi script

Discussion in 'General' started by mphayesuk, Feb 7, 2006.

  1. mphayesuk

    mphayesuk Member HowtoForge Supporter

    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.
     
  2. mphayesuk

    mphayesuk Member HowtoForge Supporter

    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
     
  3. badben

    badben New Member

    Is the cgi file in the cgi-bin?

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

    mphayesuk Member HowtoForge Supporter

    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.
     
  5. falko

    falko Super Moderator Howtoforge Staff

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

    mphayesuk Member HowtoForge Supporter

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

    falko Super Moderator Howtoforge Staff

Share This Page