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

Skip to main content

Just Host Web Hosting Help

PHP PECL Packages

Summary

This article will show how to view which PECL packages are alredy installed, as well as show you how to install additional package.

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.

Once you have logged in via SSH, enter the following command:

/usr/bin/pecl list

Installing New PECL Package

You can download and install PECL packages locally to your account. You'll need SSH access. 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 you 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:

    cd ~/pecl 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 -xvzf
  5. Change directories to the extracted directory and run the phpize command

    cd ~/pecl/<packagedirectory> phpize

  6. When that's done, run the following command from inside the module folder ./configure --prefix=$HOME/pecl/<packagedirectory> ( you can find the directory to use by typing pwd inside the package directory)

    cd ~/pecl/<packagedirectory> ./configure --prefix=$HOME/pecl/<packagedirectory>

  7. If that runs without error, then the package should be compatible with our environment. If it completes successfully, run the following command from 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

    cd modules

  9. Copy the .so file to your ~/php/extensions directory that you created.

    cp <packagename>.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.ini file in public_html (assuming you're on single php.ini mode from the php config icon in the cpanel) and change the extension_dir setting to the full path to your ~/php/extensions directory

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

  12. Add the extension to your php.ini file. It'll look like: extension=<filename>.so


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 104,381 views tags: package pear php

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

How to create a new package through the WHM
Knowledgebase Article 26,014 views tags: create package whm

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 174,741 views tags: htaccess php

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

How to create a package on your Reseller account.
Getting Started Article 100,859 views tags: add hosting limit package reseller

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 177,760 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 65,556 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 533,573 views tags: install link theme themes wordpress

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

To view your stats, scroll down to the Logs section of the cPanel Here are different programs that can be used to view your stats. We most recommend awstats When you select your stats program, you ma
Getting Started Article 192,826 views tags: awstats domain select stats view

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.