Knowledgebase
Portal Home > Knowledgebase > I have a Plesk dedicated server, how do i make cgi files run in httpdocs?
I have a Plesk dedicated server, how do i make cgi files run in httpdocs?
| How can I make CGI run in domains' httpdocs folder?
To do it on a per domain basis, create vhost.conf containing the following, and put into itthe fdomains /httpdocs folder:
<Directory /path/from/root/this/domain/httpdodcs> <Files ~ (\.cgi$)> SetHandler cgi-script Options ExecCGI allow from all </Files> </Directory>
Then run: /usr/local/psa/admin/sbin/websrvmng -v -a (or path your PSA (plesk)Install) for the changes to take effect. Now, all files with '.cgi' extension will be executed as usual CGI scripts in /httpdocs/.
To enable CGI in httpdocs for the whole server just uncomment the "AddHandler cgi-script .cgi" directive in httpd.conf and restart Apache. (NOT RECOMMENDED)
|
Add to Favourites
Print this Article
|