Article ID: 1034, created on Oct 6, 2008, last review on May 11, 2014

  • Applies to:
  • Plesk 8.x for Linux/Unix


To do it on a per domain basis, create vhost.conf for a domain and put into it:

<Directory $HTTPD_VHOSTS_D/domain.tld/httpdocs>
<Files ~ (\.cgi$)>
SetHandler cgi-script
Options ExecCGI
allow from all

Then run:
$PRODUCT_ROOT_D/admin/sbin/websrvmng -v -a

for the changes to take effect. Now, all files with '.cgi' extension will be executed as usual CGI scripts in /cgi-bin/.

To enable CGI in httpdocs for the whole server just uncomment the "AddHandler cgi-script .cgi" directive in httpd.conf and restart Apache.

Related article:

b8ef5052d936e902043e41759118114e a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF