Results 1 to 8 of 8
Thread: CGI Scripts don't work???
-
06-10-2004, 12:08 PM #1Disabled
- Join Date
- Jun 2004
- Location
- Vancouver, WA
- Posts
- 51
CGI Scripts don't work???
Okay, so I have Plesk 7.0.2 with Fedora C1. When ever I try to add a CGI script to a site, nothing happens. Most of the time I get a 404 or 500 error. I simply don't know how to fix it. I did notice that Plesk puts the cgi-bin in the root folder of each site, but is it part of the server that needs to be configured or what?
-
06-10-2004, 12:09 PM #2Web Hosting Evangelist
- Join Date
- May 2003
- Posts
- 477
Please make sure you upload your cgi scripts in ascii mode
Dixiy.com - Professional Web Hosting Provider since 2002
AutoCreation.net - Automation Solution for cPanel Hosting! + Illegal File Scanner
WHDir.net - Your complete Web Hosting Directory with Hosting/Server Tutorials
-
06-10-2004, 01:09 PM #3Web Hosting Master
- Join Date
- Jan 2001
- Location
- Kihei, HI
- Posts
- 576
Take a look at this - it might help:
http://www.assortedinternet.com/supp...ndetails&_i=12
its a HOW TO that I wrote a while back on how to debug CGI script problems.
HTH,
Brian:: 1StopWebHosting.com :: - Professional Web Hosting Services
::
:: Featuring the CPanel Control Panel running on CENTOS Linux servers
:: We offer Shared Web Hosting, Business Hosting, Java / J2EE Servers and Dedicated Server solutions.
-
06-11-2004, 06:05 AM #4Web Hosting God
- Join Date
- Dec 2001
- Location
- Above The Clouds
- Posts
- 7,223
Login as root and do this:
cp -Rfp /usr/sbin/psa-suexec /usr/sbin/suexec
Strange but true. Someone that doesn't know how to install Plesk with their eyes close won't know about that step.██ Laurence Flynn @ HostNEXUS.com
██ Managed WordPress Hosting Solutions
██ Focused on speed. Obsessed with security.
-
06-11-2004, 09:51 AM #5Disabled
- Join Date
- Jun 2004
- Location
- Vancouver, WA
- Posts
- 51
What did that do exactly???
-
06-11-2004, 09:57 AM #6Web Hosting God
- Join Date
- Dec 2001
- Location
- Above The Clouds
- Posts
- 7,223
It copied over psa-suexec to suexec as Plesk uses its own suexec binary for cgi.
██ Laurence Flynn @ HostNEXUS.com
██ Managed WordPress Hosting Solutions
██ Focused on speed. Obsessed with security.
-
06-11-2004, 10:12 AM #7Disabled
- Join Date
- Jun 2004
- Location
- Vancouver, WA
- Posts
- 51
ahh, I see. Still won't let me execute www.mydomain.com/cgi-bin/nph-proxy.cgi tho...
-
06-11-2004, 10:24 AM #8Web Hosting God
- Join Date
- Dec 2001
- Location
- Above The Clouds
- Posts
- 7,223
Do this:
cat -A nph-proxy.cgi
And see if it has dos line endings (M^) rather than unix ($).
Also check that the domain has CGI support turned on.
Check the cgi-bin is 755.
Check the script is 755.██ Laurence Flynn @ HostNEXUS.com
██ Managed WordPress Hosting Solutions
██ Focused on speed. Obsessed with security.