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

Plesk replaces php settings made on specific domains

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by BrunoMiguel, May 14, 2012.

  1. BrunoMiguel

    BrunoMiguel New Pleskian

    Apr 1, 2011
    Likes Received:
    Hello all,
    This is a very strange situation, and we don't know what is causing it.
    We have PEAR packages installed on a shared server ( /usr/share/pear/ ) for our customers to use Mail library. When a customer needs this packages, we go to Domains -> domain.com -> PHP Settings and we manually add that folder to the include_path and open_basedir fields.
    Some days after that, our customer can't access those files:

    [Mon May 14 16:20:27 2012] [warn] [client xx.xxx.xxx.xx] mod_fcgid: stderr: PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'Mail.php' (include_path='.:/usr/share/pear') in /var/www/vhosts/domain.com/httpdocs/sendmail.php on line 84, referer: http://www.domain.com/

    Please note that the error make a reference to "/usr/share/pear" (without the last slash). But when we check again PHP settings for that domain, it's well configured (with /usr/share/pear/).

    Is anyone able to explain why this happens? It happened several times, and we need a definitive resolution for this.