Score:0

Parsing PHP code in .html, .phtml in Plesk/Debian

jp flag

I have updated my Plesk system from Debian 8 (PHP7) to Debian 11 (PHP 8.1.4) using the Plesk-internal backup function, everything worked fine at the first glimpse. However, I can't get PHP 8 (FPM) to handle my .html or .phtml files anymore, the sections remain 'meta code' in the HTML and doesn't get parsed.

Of course I have already tried everything I could find, the php.ini change in /var/www/vhosts/system/{domain}/conf:

[php-fpm-pool-settings]
security.limit_extensions = .php .phtml .htm .html

AddHandler in .htaccess didn't help:

AddHandler application/x-httpd-php .php .phtml .html .htm

AddType application/x-httpd-php .php even resulted in the browser offering to download the file.

Same effect when I directly add these changes to /etc/apache2/apache2.conf.

Since .php files are getting parsed, I suppose the PHP engine runs fine, but that there is a problem with my configuration - maybe from updating. Any idea how to find the culprit setting that's missing or incorrect?

cn flag
Do you use `nginx` as frontend before `apache`? Could you provide us with full web server configuration of your domain?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.