|
General / Various : M8ty
Just a place to put things until they can be sorted into categories
Enable CGI scripts in all directories on a Plesk server
By default, cgi scripts on servers using the plesk admin panel, have to be placed in the cgi-bin folder below the web folder, they will not work if placed anywhere else. Sometimes, however, it is convenient to be able to run cgi scripts within various folders, not just the cgi bin. This is particularly true if you move a website from a different server where this was allowed and you don't want to modify all the cgi scripts to take account of the new setup.
To enable cgi scripts to be run throughout the website, add the line 'AddHandler cgi-script .cgi' to the vhost.conf file in the '/var/www/vhosts/yourdomain.com/conf'. You can do this using a command line editor, but the easiest way to modify vhost.conf files so far is using a commercial Plesk addon, the 'Plesk Power Toys'. Although a commercial set of utilities, the download is free and you only need to pay if you want to use additional features. The Plesk Power Toys can be found at http://www.web-hosting-control-panel-addons.com/product.php/Power-Toys-for-PLESK/1/ Edited 2 time(s). Last edit at 09/27/2008 05:09PM by m8ty. |