web
You’re offline. This is a read only version of the page.
close
Checkmark

Thank you for your feedback

How do I install PHP Pear Packages?

Learn how to install PHP pear packages in cPanel.

Article ID: SLN29753

PEAR (PHP Extensions and Applications Repository) is a library of open source code for developers to share a collection of PHP functions. In cPanel you can install your own PHP extension and application package or install modules directly from the PHP repository. Learn more about PEAR.

The PEAR modules are installed in the following path in the File Manager:

/home/your-home-directory-name/php

Install a PHP PEAR package

  1. Sign in to your My Services page.
  2. Click the Hosting link.

  3. Click PHP PEAR Packages in the Software module.
  4. Click the Show Available Modules button in the Find a "PHP Extensions and Applications Package" section. Note: You can also search for PEAR packages and click the Go button. 
  5. Click the Install link to install the PHP PEAR package. Note: To learn more about the PHP PEAR package, click the Show Docs link.
  6. Click the Go Back link after the PHP PEAR package is installed.
  7. Once the PEAR package is installed, it will be listed in Installed PHP Extension(s) and Application(s). Note: You can also Update, Reinstall and Uninstall the PHP PEAR package or view the Docs.
     

Install your own PHP PEAR package

  1. Sign in to your My Services page.
  2. Click the Hosting link. 

  3. Click PHP PEAR Packages in the Software module.
  4. Copy and paste your PHP PEAR script into the Textbox in the Install a PHP Extensions and Applications Package section and click the Install Now button.  
     

Important: Ensure your script is formed correctly and follows the guidelines indicated in the cPanel section: Using Your PHP Extension(s) and Application(s). For additional information, review the PEAR user FAQs.