S
skepticwebguy
Guest
I've recently moved from a MediaTemple (dv) 3.5 to a (dv) 4.0. I am now running Plesk 10.4.4.
When I configure PHP Settings to "run as FastCGI application" rather than as an "Apache module" my server will not parse php within html files. Viewing source of the blank page reveals the unparsed php. No errors occur in the log.
Setting PHP to run as an Apache module will parse php in html files as long as I have this line in my .htaccess file:
AddHandler php5-script .php .html
I've tried adding the following groups of lines (at various times) to my .htaccess file, but php still won't parse in FastCGI mode:
AddType x-httpd-php .php .htm .htm
addtype application/x-httpd-php .html
<FilesMatch "\.(htm|html|php)$">
SetHandler application/x-httpd-php
</FilesMatch>
AddType application/x-httpd-php php html
AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html
AddType application/x-httpd-php .php .htm .html
AddType text/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html
I have NOT tried modifying apache.httpd.conf yet.
Suggestions?
When I configure PHP Settings to "run as FastCGI application" rather than as an "Apache module" my server will not parse php within html files. Viewing source of the blank page reveals the unparsed php. No errors occur in the log.
Setting PHP to run as an Apache module will parse php in html files as long as I have this line in my .htaccess file:
AddHandler php5-script .php .html
I've tried adding the following groups of lines (at various times) to my .htaccess file, but php still won't parse in FastCGI mode:
AddType x-httpd-php .php .htm .htm
addtype application/x-httpd-php .html
<FilesMatch "\.(htm|html|php)$">
SetHandler application/x-httpd-php
</FilesMatch>
AddType application/x-httpd-php php html
AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html
AddType application/x-httpd-php .php .htm .html
AddType text/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html
I have NOT tried modifying apache.httpd.conf yet.
Suggestions?