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


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

AddHandler cgi-script .cgi

Then restart Apache.

Or such customization can be done per domain basis in vhost.conf, see for more information.

[ad code=4 align=center]

Leave a comment