Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2004
    Location
    Vancouver, WA
    Posts
    51

    Exclamation 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?

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

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

  4. #4
    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.

  5. #5
    Join Date
    Jun 2004
    Location
    Vancouver, WA
    Posts
    51
    What did that do exactly???

  6. #6
    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.

  7. #7
    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...

  8. #8
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •