How do I enable cgi-scripts to run from both httpdocs and httpsdocs directories in Plesk?

By default Plesk runs CGI scripts in /cgi-bin/ folder only. To allow CGI scripts be processed from any folder, you should uncomment the cgi-script AddHandler directive in the main apache configuration file /etc/httpd/conf/httpd.conf

AddHandler cgi-script .cgi

Then restart Apache with the following command:

/etc/rc.d/init.d/httpd restart

Such customizations can also be done on a per domain basis in vhost.conf.

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.