• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Installing Plesk's wordpress breaks all cgi scripts

HostaHost

Regular Pleskian
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:

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.
 
Thanks, I will inform Plesk devs.

Meanwhile, you can try to disable mod_php in Apache modules: Home > Tools & Settings > Apache Modules

However, please take into account that this can affect Plesk webmail.
 
Back
Top