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!

Running CGI outside of cgi-bin possible ?

Discussion in 'General Discussion' started by jeroman8, Mar 7, 2004.

  1. jeroman8

    jeroman8 Well-Known Member

    Joined:
    Mar 14, 2003
    Messages:
    410
    Likes Received:
    0
    Trophy Points:
    166
    Hi, is it possible to run cgi scripts outside of the cgi-bin when suexec is active ?
     
  2. BrightAdmin

    BrightAdmin Well-Known Member

    Joined:
    Feb 29, 2004
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    166
    Hi jeroman8,

    Yes, you can execute cgi scripts outside the cgi-bin directory by adding the following directive to .htaccess file.

    A .htaccess file is a way to set configuration directives on a per-directory basis. When Apache serves a resource, it looks in the directory from which it is serving a file for a file called .htaccess.

    .htaccess file
    ==================
    AllowOverride Options
    AddHandler cgi-script cgi pl
    Options +ExecCGI [which tells Apache that execution of CGI programs is permitted in this directory]

    "Always have a bright support".:)

    Regards,:)

    Bright
     
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