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

PHP and PEAR Installation Paths

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by ViolaG, Jan 4, 2010.

  1. ViolaG

    ViolaG Guest

    0
     
    Hi

    Please can you help?

    I recently got a dedicated server with Plesk 9.2 installed (with GoDaddy). The installation includes PHP and PEAR. However, the PEAR on my website are not working. The problem is not with the website because it was working before I got the new server.

    Please can you advise me about how I may be able to get the PEAR aspects of my website to work?

    Thanks.

    Viola
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
    Maybe it will help?
     
  3. ViolaG

    ViolaG Guest

    0
     
    Yes, it did help. Thanks.

    The problem was that there was an already existing vhost.conf file that contained an open_dir path. The problem was that open_dir and safe_mode don't work well together.

    I added the line
    Code:
    php_admin_value safe_mode_include_dir /usr/share/pear
    to the vhost.conf file and it now works.

    Here's more reading (in case it helps someone else):

    http://php.net/manual/en/ini.sect.safe-mode.php
    http://kevin.vanzonneveld.net/techblog/article/use_pear_with_open_basedir_and_safe_mode_restricti/
     
Loading...