Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    427

    Default Running CGI outside of cgi-bin possible ?

    Hi, is it possible to run cgi scripts outside of the cgi-bin when suexec is active ?

  2. #2
    Member
    Join Date
    Feb 2004
    Posts
    204

    Default

    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

Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 05-19-2011, 07:16 AM
  2. Replies: 0
    Last Post: 02-14-2005, 09:49 PM
  3. Undefined catalog: /~fciperfo/cgi-bin/cart.cgi
    By brianteeter in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-29-2002, 01:21 PM
  4. Interchange - Undefined catalog: /~xxxxx/cgi-bin/cart.cgi
    By wscreate in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-08-2001, 09:36 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube