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

    https://survey.webpros.com/

How do I enable PHP handling on Custom Error Pages

S

SarahW

Guest
Hi,

I already enabled PHP for my site and the PHP is working for the site. My question deals with custom error pages, which Plesk, by default, stores in the error_docs folder. I added PHP code to that file, but the system ignores all PHP code in the file. Even if I change the extension to PHP and go into IIS and change the file to a PHP one, PHP code still gets ignored. How do I get custom error pages, in this case for the 404 error, to work?

I know that it is possible, when my site was hosted previously, also on a Windows server, there were no issues with PHP custom error pages.

Thanks in advance,

Sarah
 
Back
Top