Plesk 9 – Enable PHP Pear for a domain

Re: How to enable PHP Pear for a domain in Plesk

1) edit vhost.conf as such:

<Directory /var/www/vhosts/>
        php_admin_value include_path "/var/www/vhosts/"
        php_admin_value open_basedir "none"

2) /usr/local/psa/admin/sbin/websrvmng – -reconfigure-vhost –

3) service httpd restart

To test pear, create a php file, eg check_pear.php

require_once 'System.php';
var_dump(class_exists('System', false));

4) open check_pear.php in a browser, a ‘true’ result confirms pear is working:


That’s all there is to getting PEAR working on Plesk 9 Linux.

Was this helpful?