Please let us know how this article can be improved.
Choose all that apply.*
Report a bad link
Out of date (instructions or screenshots)
Missing detail
Other
How do I install PHP Pear Packages?
Learn how to install PHP pear packages in cPanel.
Jun 20, 2024
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:
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.
Click the Install link to install the PHP PEAR package. Note: To learn more about the PHP PEAR package, click the Show Docs link.
Click the Go Back link after the PHP PEAR package is installed.
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.
Copy and paste your PHP PEAR script into the Textbox in the Install a PHP Extensions and Applications Package sectionand 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.