Tips, Tricks, News & Offers
If you would like to be kept up to date with Internet technology changes, Idaq technical tips & How To's plus discounts and special offers, subscribe to our Tips, Tricks and offers Newsletter:

First Name:
Last Name:
Knowledgebase: Dedicated Servers
How do I run CGI script outside of the cgi-bin?
Posted by John Imison on 06 December 2007 02:39 PM
If you wish to run cgi scripts outside of the cgi-bin directory adding the following lines to a .htaccess file should enable the script to run:

# Start
Options +ExecCGI
AddHandler cgi-script cgi
# End

Make sure that the permissions on the script allow it to be read and executed. If using suexec ensure that the user and group of the file are set correctly.

(48 votes)
This article was helpful
This article was not helpful

Comments (0)
Post a new comment 
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Hosted by Idaq