• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Errordocs & PHP. Possible ?

M

mike2007

Guest
Hello,

by designing individual errordocs for my domains I see, it is not possible, to use PHP within these docs.

Maybe I misconfigured sth. but generally in this folders (/errordocs) PHP generally is not processed.

Is there a solution to get PHP working for errordocs ?

Thanks for any suggestions.

Greeting
Mike
 
did you get an answer to this issue with php error docs?
I am working on the same issue and have discovered this so far.

1st create a file called vhost.conf in the /var/www/vhosts/domain.com/conf directory.

add a line like this ErrorDocument 404 /error_docs/not_found.php

save the file and run /usr/local/psa/admin/sbin/websrvmng -v -a

this adds a line to httpd.include to look for the vhost.conf file

this tells the system to use the new filename for that error.

now I am told that this article http://kb.swsoft.com/article_41_432_en.html
allows the directory to use php.
added that command and looked at the base dir listing using phpinfo() in a file in the httpdocs dir. and it adds the error_docs dir to the base directory, but php doesnt run.

It is like plesk overides the php function in error_docs
anybody got any ideas? or better yet answers?
 
Back
Top