Hi
I have Plesk 12.5 running on Ubuntu 14.04 LTS with php 5.5 out of the box. I added PHP 5.6 via plesk so I can run a site on this instead of 5.5.
The site currently runs with php as apache module and unfortunately plesk only installs FPM & fastcgi.
I have found if I switch the site to anything other than apache module (on either 5.5 or 5.6), it breaks, as html pages containing php get downloaded instead of interpreted - in other words the addhandler and addtype apache directives (that are in a .htaccess file) seem to be ignored.
I have tried several things, including adding the following to the vhost.con file (found in https://kb.odin.com/en/115773 ):
#PHP is running as an Apache module:
<IfModule mod_php5.c>
AddHandler php5-script .php .html .htm
AddType text/html .php .html .htm
</IfModule>
#PHP is running as a FastCGI application
<IfModule mod_fcgid.c>
<Files ~ (\.html)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .html
Options +ExecCGI
allow from all
</Files>
</IfModule>
...this doesn't appear to make any difference at all - still can't access site with fast cgi selected.
The .htaccess file does appear to be being read.
I have also tried to configure php 5.6 as apache module using the suggestions here:
https://support.plesk.com/hc/en-us/...ecause-corresponding-Apache-module-turned-off but it didn't show up as an option in the control panel
Any ideas would be very welcome...
I have Plesk 12.5 running on Ubuntu 14.04 LTS with php 5.5 out of the box. I added PHP 5.6 via plesk so I can run a site on this instead of 5.5.
The site currently runs with php as apache module and unfortunately plesk only installs FPM & fastcgi.
I have found if I switch the site to anything other than apache module (on either 5.5 or 5.6), it breaks, as html pages containing php get downloaded instead of interpreted - in other words the addhandler and addtype apache directives (that are in a .htaccess file) seem to be ignored.
I have tried several things, including adding the following to the vhost.con file (found in https://kb.odin.com/en/115773 ):
#PHP is running as an Apache module:
<IfModule mod_php5.c>
AddHandler php5-script .php .html .htm
AddType text/html .php .html .htm
</IfModule>
#PHP is running as a FastCGI application
<IfModule mod_fcgid.c>
<Files ~ (\.html)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .html
Options +ExecCGI
allow from all
</Files>
</IfModule>
...this doesn't appear to make any difference at all - still can't access site with fast cgi selected.
The .htaccess file does appear to be being read.
I have also tried to configure php 5.6 as apache module using the suggestions here:
https://support.plesk.com/hc/en-us/...ecause-corresponding-Apache-module-turned-off but it didn't show up as an option in the control panel
Any ideas would be very welcome...