View Single Post
  #1  
Old 1st May 2009, 15:13
Doug_M Doug_M is offline
Junior Member
 
Join Date: Mar 2009
Posts: 5
Thanks: 1
Thanked 1 Time in 1 Post
Default PEAR on CentOS 5.x

In order to get the Pear dir in the include path you need to edit /usr/local/ispconfig/server/conf/vhost.conf.master and add the line in bold to both "# mod_php enabled" sections:

Code:
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>"
php_admin_value upload_tmp_dir <tmpl_var name='document_root'>/tmp
php_admin_value session.save_path <tmpl_var name='document_root'>/tmp
#php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5
php_admin_value include_path ".:/usr/share/pear"
For any existing vhosts you may have edit their conf file in /etc/httpd/conf/sites-enabled and add the same line under the mod_php section.
Reply With Quote
Sponsored Links