• 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.

PHP per domain in Plesk

cotus

New Pleskian
Hi to all,
first I would say I'm not a php programmer and I've search into forum but I've found nothing really exhaustive.

The point is: is it possible or not to define differents php values per each domain in Plesk?

I used to set php as "apache module" in plesk panel and then let my customers to use .htaccess with php values inside.
This defenetevly definitely works but what about if a customer puts some absurd value inside .htaaccess ? for example "php_value memory_limit 1000M" ?
Is it safe for my server? I doubt it

Moreover I discovered recently that's safer to use PHP as CGI in order to limit the possibility to affect the whole server in case of wrong or malicious php code.
So I've tried it on Plesk panel but I've immediatly see that php value inside .htaccess is nomore considered.

Coclusion: To be, or not to be: that is the question
better to use PHP as apache module? or as CGI? how to use differents parameters for each domain without loosing server security?

Please take part to this discussion and give your opinion/contributions to this perennial question.
Thanks

Andrea
 
Back
Top