• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PHP and PEAR Installation Paths

V

ViolaG

Guest
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
 
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/
 
Back
Top