• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Disable PHP for a Domain?

Azurel

Silver Pleskian
What is the correct way to disable PHP for a (CDN-)Domain?

Disable PHP in PHP-Settings ends with automatic download the php-file. I want PHP files in CDN, but I want something like a 404 or 403 by access. It should not execute and it should not download the php-file.

That is not working
<Directory /var/www/vhosts/example.com/httpdocs/>
php_admin_value engine Off
</Directory>
Error: 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
But I think this will end in download the php-file?
 
Last edited:
Probably in this form
<Directory /var/www/vhosts/example.com/httpdocs/>
<FilesMatch "\.php$">
Order allow,deny
Deny from all
</FilesMatch>
</Directory>
 
Last edited:
Back
Top