Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Posts
    598

    Default How can a user run a .cgi script outside the cgi-bin?

    How can a user run a .cgi script outside the cgi-bin?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2008
    Posts
    49

    Default

    Hi;

    If you wish to run the cgi script outside the cgi-bin folder and it doesn't seem to work, first get in touch with the Technical Support Team of your web host and let them know about your needs.

    Then, ask permission if you're allowed to add the following two lines to your .htaccess file:

    Options +ExecCGI
    AddHandler cgi-script .cgi .pl

    Those two lines tell your webserver to treat files ending in .cgi or .pl to execute (run as scripts). This assumes you've chmoded those files as 755.
    JaguarPC
    jaguarpc.com

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Posts
    598

    Default

    Thanks, that worked!

Similar Threads & Tags
Similar threads

  1. run a file from the cgi-bin folder
    By tonyevans in forum New User Questions
    Replies: 1
    Last Post: 04-21-2008, 09:28 AM
  2. err 404 cant run cgi-bin
    By power_on in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 01-15-2006, 11:03 AM
  3. Replies: 0
    Last Post: 02-14-2005, 10:49 PM
  4. Can't run html files in CGI BIN
    By smile in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 01-23-2005, 08:13 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube