Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

CGI Access, cgi-bin

Discussion in 'General Discussion' started by bradandersen, Sep 2, 2007.

  1. bradandersen

    bradandersen Active Member

    Joined:
    Oct 6, 2003
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    156
    On moved/transferred accounts from one server to another the file /usr/local/apache/conf/httpd.conf file will not contain this line for every VirtualHost entry:

    ScriptAlias /cgi-bin/ /home/[USER]/public_html/cgi-bin/

    It will contain it for all add-on and sub-domains, but not for the primary entries. To fix it, open the file and search for CustomLog and enter that line right below it.

    I had to do it for a whole lot of accounts, but CGI access is back.

    Otherwise, it tries to run files out of /usr/local/apache/cgi-bin and you get a 404 error saying the file does not exist.
     
  2. katz_global

    katz_global Well-Known Member
    PartnerNOC

    Joined:
    Oct 18, 2003
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Hosting from: Panama, Hong Kong, Singapore, Malays
    thanks for the tip.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Dale S

    Dale S Member

    Joined:
    Sep 3, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    CGI not working after move

    I moved a number of accounts and none of them have CGI working. I tried the fix on one of them with no luck.

    I had:
    I changed it to:
    Did I do that right? Is there something else I need to do?
     
  4. Dale S

    Dale S Member

    Joined:
    Sep 3, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    CGI not working after move

    Found my own answer. I had forgotten to restart Apache. I restarted and it works fine now.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice