Knowledge Base

How to install PHP PEAR packages using cPanel

This article describes how to use cPanel to install PEAR (PHP Extension and Application Repository) packages on your web site. PEAR packages are reusable PHP code libraries that can speed up web site development.

Install a PEAR package

To install a PEAR package:

  1. In the Software/Services section of the cPanel home screen, click PHP PEAR Packages. The PHP Extensions and Applications Package Installer page appears.
  2. Under Location of Your PHP Extension(s) and Application(s), note the path where the PEAR packages are installed. You will need this information later when you update the PHP include path.
  3. Install the PEAR package:
    • To search for a PEAR package, type the name in the Search text box and then click Go. For example, to search for packages related to XML, type xml. When you find the package that you want to install, click Install.
    • Alternatively, if you already know the name of the package that you want to install, type the package name and then click Install Now.
  4. When installation is complete, click Go Back.

  5. The installed package is now listed under Installed PHP Extension(s) and Application(s):

    • To update the package, click Update.
    • To reinstall the package, click Reinstall.
    • To uninstall the package, click Uninstall.
    • To view the documentation for the package, click Show Docs.
    • To view a list of packages installed systemwide, click Show System Installed Modules.
  6. After you install a PEAR package, you must configure the PHP include path. For information about how to configure the PHP include path for your web site, please see this article.

More Information

For more information about PEAR, please visit