PEAR on CentOS 5.x

Discussion in 'Tips/Tricks/Mods' started by Doug_M, May 1, 2009.

  1. Doug_M

    Doug_M New Member

    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:

    # 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
    [b]php_admin_value include_path ".:/usr/share/pear"[/b]
    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.

Share This Page