Re: How to enable PHP Pear for a domain in Plesk
1) edit vhost.conf as such:
<Directory /var/www/vhosts/domain.com/httpdocs> php_admin_value include_path "/var/www/vhosts/domain.com/httpdocs/:/usr/share/pear/" php_admin_value open_basedir "none" </Directory>
2) /usr/local/psa/admin/sbin/websrvmng – -reconfigure-vhost –vhost-name=domain.com
3) service httpd restart
To test pear, create a php file, eg check_pear.php
<?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:
bool(true)
That’s all there is to getting PEAR working on Plesk 9 Linux.