1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Errordocs & PHP. Possible ?

Discussion in 'Plesk for Linux - 8.x and Older' started by mike2007, Mar 11, 2007.

  1. mike2007

    mike2007 Guest


    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.

  2. abickle

    abickle Guest

    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?