Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th February 2006, 13:02
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 7th February 2006, 13:08
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default

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
Reply With Quote
  #3  
Old 7th February 2006, 15:42
badben badben is offline
Senior Member
 
Join Date: Oct 2005
Location: Lancashire, UK
Posts: 103
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Is the cgi file in the cgi-bin?

Only files in the cgi-bin will run as a cgi file.
__________________
Web Developer
Reply With Quote
  #4  
Old 7th February 2006, 15:56
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default

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.
Reply With Quote
  #5  
Old 7th February 2006, 18:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

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...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 7th February 2006, 21:30
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default

OK.. so how do I re-compile it....
Reply With Quote
  #7  
Old 8th February 2006, 22:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
server blocked/stopped by host Ovidiu Technical 11 14th February 2006 10:50
Mail not working Roadracer Installation/Configuration 16 30th December 2005 23:40
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30
Internal Server Error with CGI scripts? lola Programming/Scripts 2 21st April 2005 17:00


All times are GMT +2. The time now is 14:54.


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