Installed PEAR packages
The following PEAR packages are already installed on our hosting packages:
Archive_Tar 1.1 stable
Console_Getopt 1.0 stable
DB 1.5.0RC2 stable
Date 1.4.5 stable
HTML_Common 1.2.2 stable
HTML_QuickForm 3.2.5 stable
HTML_QuickForm_Contr 1.0.5 stable
oller
HTML_QuickForm_advmu 1.0.0 stable
ltiselect
HTML_Table 1.5 stable
HTML_Template_IT 1.1 stable
HTTP 1.2.1 stable
Log 1.8.3 stable
Mail 1.1.1 stable
Mail_Mime 1.2.1 stable
Net_SMTP 1.2.3 stable
Net_Socket 1.0.1 stable
OLE 0.5 beta
PEAR 1.3b3 beta
Spreadsheet_Excel_Wr 0.8 beta
iter
XML_Parser 1.0.1 stable
XML_RPC 1.4.0 stable
If further PEAR packages are required, a local installation of PEAR on the web space is necessary. This is carried out as follows:
Install additional PEAR packages
First, log in to the hosting package via SSH access.
Enter the following command in the root directory:
lynx -source pear.php.net/go-pear| php.5
After the welcome message, continue by pressing the ENTER key. You can skip the query for the HTTP proxy by pressing the ENTER key.
You will now see a list with 7 paths. After entering 1, enter the desired absolute path for the installation of PEAR, e.g.
/kunden/111111_22222/rp-hosting/3333/4444/pear/
In points 5, 6 and 7, replace $php_dir with $prefix. The list should now look similar to the following:
1. installation prefix ($prefix) : /kunden/111111_22222/rp-hosting/3333/4444/pear
2. temporary files directory : $prefix/temp
3. Binaries directory : $prefix/bin
4. PHP code directory ($php_dir) : $prefix/PEAR
5. Documentation base directory : $prefix/docs
6. Data base directory : $prefix/data
7. Tests base directory : $prefix/tests
The installation is now started by pressing the ENTER key. The question about the installer
The question about
The following PEAR packages are bundled with PHP: PEAR_Frontend_Web-beta,
PEAR_Frontend_Gtk2, MDB2.
Would you like to install these as well? [Y/n]
is confirmed with ENTER. The installation will now start and a series of messages will be displayed. The question after
Would you like to alter php.ini </usr/local/php5/php.ini>? [Y/n]
is also confirmed with the ENTER key. The path information is now output:
Current include path : .:/usr/local/lib/php
Configured directory : /kunden/111111_22222/rp-hosting/3333/4444/pear/PEAR
Currently used php.ini (guess) : /usr/local/php5/php.ini
The installation of PEAR can now be completed with ENTER. Additional PEAR packages can now be added by entering the following commands (example: auth_SASL package):
PEAR/bin/pear install auth_SASL
A list of the installed packages can be displayed with
PEAR/bin/pear list
can be created. To be able to use PEAR in PHP scripts, the include path in php.ini needs to be adjusted. This is done via the php.ini editor in the customer menu. There, the new path is added to the existing inlcude path after a colon:
.:/usr/local/lib/php/:/customers/111111_22222/rp-hosting/3333/4444/pear/PEAR/
Important: the register_globals option must be deactivated!