• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

How to get rid of php_admin_flag / disable mod_php

S

Swift42

Guest
Hi there!

If you want to disable mod_php in Plesk 7.5.4 (e.g. because you want to switch to cgi/fcgi), there is a problem in httpd.include:

<Directory "/var/www/vhosts">
AllowOverride All
Options SymLinksIfOwnerMatch
Order allow,deny
Allow from all
php_admin_flag engine off
</Directory>

<Directory "/usr/lib/mailman">
AllowOverride All
Options SymLinksIfOwnerMatch
Order allow,deny
Allow from all
php_admin_flag engine off
</Directory>

SWsoft has forgotten to encapsule the php_admin_flag with <IfModule mod_php4.c> :-(

If found no elegant way to get rid of the php_admin_flag.
The only thing that worked:
I patched /opt/psa/admin/sbin/websrvmng
I opened the binary with the editor joe, switched to overtype-mode (important!) and searched for the above config. Then I replaced the first p of the two php_admin_flag-directives with a "#" sign, so Apache will treat this as a comment.

Not very clean, but it works.
 
Back
Top