install PEAR to PLESK over UBUNDU

#apt-get install lynx

#lynx -source | php

press 1 and change the path to /usr/share

After with pear

pear install XML_Serializer

Using PEAR

This section discusses some of the common uses of PEAR. For more detailed instructions on using PEAR see the PEAR Manual

* Get a list of software available using PEAR

pear remote-list

* Install a package

pear install <package_name>

* List packages installed

pear list

* List files belonging to an installed package

pear list-files <package_name>

* Uninstall a PEAR package

pear uninstall <package_name>

* Upgrade PEAR installer (needed for installing certain packages)

pear upgrade PEAR

After go to the

cd /var/www/vhosts/

and create file vhost.conf

add this code

<Directory "/var/www/vhosts/">
php_admin_value open_basedir none
php_admin_value open_basedir off
php_admin_value open_basedir "/var/www/vhosts/"
php_admin_value include_path ".:/usr/share/PEAR"
php_admin_value safe_mode Off

Reconfigure your webserver so it will look for your new vhost.conf file by doing this:

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost

Finally you must restart apache, this can be done through Plesk or by executing the following commands:

/etc/init.d/apache2 stop

/etc/init.d/apache2 start


Leave a comment