We just had a customer install Wordpress on their site, via the Plesk PowerPack in 10.4.4, php was set to FastCGI mode. For whatever reason, Plesk decided to incorrectly ignore the site's setting of fastcgi mode, but it also has decided to remove the ScriptAlias directive from the main site config file, breaking all cgi scripts for the site. So here's what it did:
1) Installed wordpress
2) Created a file /var/www/vhosts/DOMAIN/conf/siteapp.d/main.conf containing:
That of course should not be there since the site is set to fastcgi for php.
3) Altered the /var/www/vhosts/DOMAIN/conf/13462200640.99007300_httpd_ip_default.include file to remove ANY mention of ScriptAlias, it should still have:
ScriptAlias "/cgi-bin/" "/var/www/vhosts/DOMAIN/cgi-bin/"
I could not get it to come back even by turning cgi support off and on, or setting it to httpdocs instead of document root, nothing will bring it back. I had to add it back in manually using a vhost.conf file.
1) Installed wordpress
2) Created a file /var/www/vhosts/DOMAIN/conf/siteapp.d/main.conf containing:
Code:
<Directory /var/www/vhosts/DOMAIN/httpdocs/ >
<IfModule mod_php4.c>
php_admin_flag engine on
AddHandler php-script .php
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
AddHandler php5-script .php
</IfModule>
</Directory>
That of course should not be there since the site is set to fastcgi for php.
3) Altered the /var/www/vhosts/DOMAIN/conf/13462200640.99007300_httpd_ip_default.include file to remove ANY mention of ScriptAlias, it should still have:
ScriptAlias "/cgi-bin/" "/var/www/vhosts/DOMAIN/cgi-bin/"
I could not get it to come back even by turning cgi support off and on, or setting it to httpdocs instead of document root, nothing will bring it back. I had to add it back in manually using a vhost.conf file.