PHP PECL 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 PECL Packages

PECL acts as a repository for PHP Extensions, providing you with a directory of all known extensions and hosting facilities for downloading and development of PHP extensions.

Viewing Currently Installed PECL Packages

To view the PECL Packages currently installed, you will need SSH access.

If you need to enable SSH access please see our article, SSH Access.

There is currently no way of viewing installed PECL packages for an individual cPanel user. Instead, you can check within your ~/pecl folder where installed packages would be located.

You can view globally installed PECL packages by using the following command. (73 can be replaced with any other available version of PHP ex. 56, 70, 71, 72, 73, and 74)
ea-php73-pecl list -a

Installing New PECL Package

You can download and install PECL packages locally to your account. You'll need SSH access.

If you need to enable SSH access please see our article, SSH Access.

**Instances of “ea-php73” in the following commands can be replaced by other versions of PHP on the server**

Once you're logged in, these are steps for installation:
  1. Create a folder in your home directory to download and compile the packages in.

    mkdir ~/pecl

  2. Create a directory for your php extensions to be located in. Something like ~/php/extensions.

    $ mkdir ~/php ) $ mkdir ~/php/extensions

  3. Change directories to that created pecl directory, and run the following command:

    c$ cd ~/pecl
    $ /opt/cpanel/ea-php73/root/usr/bin/pecl download <packagename>
    ** For multiple PECL packages, repeat steps 4-9 and then step 12 **

  4. That will download the package which you'll then need to untar with:

    tar –zxvf $package.tgz

  5. Change directories to the extracted directory and run the phpize command

    $ cd ~/pecl/

    $ /opt/cpanel/ea-php73/root/usr/bin/phpize

  6. When that's done, run the following command from inside the module folder

    /opt/cpanel/ea-php73/root/usr/bin/phpize && ./configure --with-php-config=/opt/cpanel/ea-php73/root/usr/bin/php-config --prefix=$HOME/pecl/

  7. If that runs without error, then the package should be compatible with our environment. If it completes successfully, run the following command from the individual module directory make

    make

  8. That will create the module file that you’ll need to put in your php.ini. It’ll be located in the modules directory and will be named <packagename>.so
  9. Copy the .so file to your ~/php/extensions directory that you created.

    cp ~/pecl//modules/.so ~/php/extensions/

  10. Copy the existing server-installed extensions from /usr/lib64/php/modules/ to the ~/php/extensions directory:

    cp -rf /usr/lib64/php/modules/* ~/php/extensions/

  11. Edit your PHP config from within the Advanced >> MultiPHP INI Editor. Use the Editor mode to add in the following line, or edit the existing line.
    ** You can find your /home/user folder by using the “pwd” command in shell. **

    extension_dir = "/home<#>//php/extensions"

  12. Add the extension to your php.ini file. It’ll look like:

    extension=.so

Knowledgebase Article 192,011 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 outline which PHP PEAR Packages are installed and how you can install additional PHP PEAR Packages.
Knowledgebase Article 190,495 views tags: package pear php

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

How do I view the php information page?
Knowledgebase Article 200,078 views tags: php phpinfo

Related Help Content

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 405,140 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 289,356 views tags: button install link theme topic

This article explains how to install WordPress when Mojo is unable to create the database automatically.
Knowledgebase Article 199,160 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 849,989 views tags: install link theme themes wordpress

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,129,826 views tags: blog install scripts simple wordpress

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

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

This article explains how to enable FastCGI for PHP applications.
Knowledgebase Article 164,820 views tags: fastcgi 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