Results 1 to 6 of 6
  1. #1

    running cgi scripts from different folder


    I want to be able to run .cgi or .pl scripts from a folder othan then my cgi-bin folder.

    How do I do this?


  2. #2
    Join Date
    Mar 2002
    Put the files in a different folder you want it to run from.

  3. #3
    no - this doesn't work.

    When the file whatever.cgi is in the cgi-bin folder it will get exectued when accessing through

    however is whatever.cgi is in the folder then accessing it through the browser actually shows the contents of the file (in this case perl code) rather then executing the file.

    yes - it has execute permissions.

  4. #4
    Join Date
    Jun 2000
    Washington, USA
    The server needs to have global CGI execution configured.

  5. #5


    LOL - that's like saying "The bag full of money is right over............ahh i'll tell you next wee"

    so how do you do that?

  6. #6
    Join Date
    Nov 2001
    Ann Arbor, MI
    If using apache, make sure you have "ExecCGI" directive for the "folder other than the cgi-bin folder". Or you could just have "AllowOveride" and drop an .htaccess file into that "folder" with "ExecCGI" enabled.

    If you're using suexec, make sure that the "other folder" has the correct permissions.

    Post what's currently in your httpd.conf file (if you're using apache) for more information.
    -Mark Adams - Secure Michigan web hosting for your business.
    Only host still offering a full money back uptime guarantee and prorated refunds.
    Offering advanced server management and security incident response!

Posting Permissions

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