• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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