The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    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:
    16
    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