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

Disable php in a specific directory

HubertP

New Pleskian
Hello,

I want to disable php for specific directory of my website.

For example the "media" directory.

I tried this in a htaccess file :
Code:
<Directory /var/www/vhosts/mydomaine.tls/httpdocs/medias/upload>
       RemoveHandler .php .phtml .php3
       RemoveType .php .phtml .php3
       php_flag engine off
</Directory>
but it doesn't work.

PHP support (Run PHP as Apache Module , PHP version 5.4.4 )

I tried in "Web Server Settings for > Additional directives for HTTP" but doesn't work :'(

Thank's for your help :)

Pierre-Louis Hubert
 
Back
Top