• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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