• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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