PHP PEAR Packages
If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

PHP PEAR Packages

Many PHP PEAR packages are already included with cPanel. Click the PHP PEAR Packages icon in the cPanel then click "Show System Installed Modules". If the extension required is not listed, below are two options for installing additional PHP PEAR Packages.

Installing PHP PEAR Packages included with cPanel:

The cPanel includes a selection of PEAR Packages which can automatically be installed. Simply follow these steps to use the cPanel's PEAR Package installer.

  1. Log in to your HostMonster cPanel account.
  2. Under Programming click the PHP PEAR Packages icon.
  3. Use the search box or click the button to show all available PEAR extensions.
  4. Click the Install Now button next to the extension you wish to install to your account.
  5. Follow the php.ini configuration steps shown below.

Manually installing PHP PEAR Packages:

If the PEAR Package is not already installed and is not available to install via the cPanel, you may install the package manually by following these steps:

  1. Download the PEAR package from the internet, often this will be from pear.php.net.
  2. Upload the file to the home directory inside the php folder. If the php folder does not already exist in the home directory, simply create one.
  3. Extract the file (if needed).
  4. Follow the php.ini configuration steps shown below.

Configuring the php.ini file for installed PEAR Packages:

In order for scripts to use the PEAR package(s) that have installed with either of the above methods, make sure the php.ini file references the correct php/ directory.

  1. Open the php.ini file with a standard text editor or code editor. You may use the file manager edit tool.
  2. locate the line which begins with include_path. It should look similar to: include_path = ".:/usr/lib64/php:/usr/share/pear"

    If this line begins with a semicolon, remove the semicolon

  3. Change this path to include the path of your php folder (separated by a colon). For example: include_path = ".:/usr/lib64/php:/usr/share/pear:/home#/username/php"

    Where /home#/username/ is the home directory for your account as shown in the main cPanel page on the left stats column.

If you still are unable to use the PHP PEAR package after following these steps, ensure you have modified the php.ini file which is in the same directory as your PHP script. Alternatively you may modify the php.ini file in public_html and have chosen single php.ini from the PHP Config icon in the cPanel. The single php.ini option indicates that all PHP scripts should use the php.ini file found in public_html.

Knowledgebase Article 191,842 views bookmark tags: package pear php


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

This article will show how to view which PECL packages are alredy installed, as well as show you how to install additional package.
Knowledgebase Article 194,327 views tags: package pear php

This article will explain how to add a PHP handler to your .htaccess files. This is useful if you want to customize the version of PHP that runs your PHP files.
Knowledgebase Article 408,591 views tags: htaccess php

Getting Started Wizard After you have installed phpBB, please use the administrative link provided in SimpleScripts to access the login area. Enter the Admin Username you selected when installing php
Getting Started Article 291,448 views tags: button install link theme topic

Related Help Content

This article explains how to install WordPress when Mojo is unable to create the database automatically.
Knowledgebase Article 200,691 views tags: MOJO automatic database install wordpress

Install Themes These steps will help you install and select a WordPress theme for your blog. Inside the WordPress Dashboard, select the Add New Themes link in the Appearance Menu. You can search for
Getting Started Article 852,031 views tags: install link theme themes wordpress

This tutorial will help you be able to install the PHP PECL package APC. (Alternative PHP Cache)
Knowledgebase Article 173,094 views tags: caching dedicated pecl vps

We provide a program which makes it very easy to install third party scripts to your hosting account. If you want your website to have a WordPress blog, you can use MOJO Marketplace to install WordPress.
Getting Started Article 1,140,302 views tags: blog install scripts simple wordpress

How to use the yum package mnager to install and update applications and programs.
Knowledgebase Article 133,222 views tags: dedicated vps yum

This article explains how to enable FastCGI for PHP applications.
Knowledgebase Article 165,974 views tags: fastcgi php

Changing PHP versions, load custom Apache mods, and other Apache/PHP customizations
Knowledgebase Article 154,874 views tags: easyapache php vps whm

This article will explain how to run php and other file types using Cron jobs.
Knowledgebase Article 525,262 views tags: cron file jobs php

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here