• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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