Install Pecl On

Overview

PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions.

READ ME FIRST

This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications or code is outside the scope of support provided by (mt) Media Temple. Please take a moment to review the Statement of Support.

This video guide gets you started with gRPC in PHP with a simple installation example. You need PHP version 7.0 or higher, PECL.I am sharing you the code sni. Pecl install xdebug On Apple M1 hardware, you might instead need to use: arch -x8664 sudo pecl install xdebug Warning: You should ignore any prompts to add 'extension=xdebug.so' to php.ini — this will cause problems. In some cases pecl will change the php.ini file to add a configuration line to load Xdebug. This guide will contain information regarding installing 'yaml' using PECL on a cPanel server. To install a PHP module you use the PECL command, EasyApache 4 includes multiple versions of PHP, so there is a different command for each PHP version as an example here is the PECL location for PHP 7.2, PHP 7.3, and PHP 8.0.

Instructions

The following are the steps required to install most PECL extensions on the Grid. You can find a list of PECL extensions at http://pecl.php.net/packages.php.

Install Pecl On Mac

  1. Connect to your Grid with SSH.
  2. Set your site number variable and current PHP path for later use:

    TIP:

    To verify and/or change what version of PHP is being used by your website, please visit the following Community article: How can I specify the PHP version on the Grid?
  3. Create the following directories on your service:
  4. Run the command to download and decompress the package, and also navigate within the directory of the package:

    TIP:

    Replace 'uploadprogress' with the package you wish to install.
  5. Run the following command to configure the extension:
  6. Run the following command to compile the extension and copy it to the following folder:
  7. Next, you need to edit your php.ini file to load your PECL extension correctly. Here is an example:

    NOTE:

    Replace 'uploadprogress' with the package you wish to install.

  8. Once you save the changes to your php.ini file, the PECL extension should work. You can verify this by looking at your phpinfo page:

Install Pecl On Mac

Advanced Support Can Help!

Installing, configuring, and troubleshooting third-party applications is outside the general scope of support provided by (mt) Media Temple. Please take a moment to review the Statement of Support.
If you're having trouble installing/configuring PECL extensions, additional assistance may be available through our Advanced Support service. Our expert engineers can tweak and tune your server for optimum performance. For more information on what Advanced Support can do for you, please visit this article.

Instructions

Install Pecl On
  1. Install the Developer Tools for your DV server.
  2. Log into your server with a root or sudo user via SSH.
  3. Create a temporary executable '/tmp' directory, as shown in steps 1-3 of this article.
  4. Perform a channel-update for PEAR and PECL:
  5. Install uploadprogress (or your desired extension).

    NOTE

    If all goes according to plan, you should see the following output:

  6. Remove the temporary executable '/tmp' directory as shown in step 4 of this article.
  7. The module will be installed in /usr/lib64/php/modules/ as /usr/lib64/php/modules/uploadprogress.so.
  8. Add the following line your php.ini:

    NOTE:

    Place under the 'Dynamic Extensions' section!
    If you are using FastCGI, edit the domain's 'php.ini' file (i.e. /var/www/vhosts/your_domain/etc/php.ini)!

  9. Reboot Apache:
  10. Verify the installation of the PHP module by executing the following command:

    Compile from source

    If the above method does not work for you, you'll need to compile the PECL extension from source, which is very easy.

  11. Browse to the directory you'd like the 'temp' files to be stored at, in this case /root:
  12. Next we'll download and extract the actual PECL extension tar.gz file (be sure to replace the PECL extension with the one you want):
  13. Next cd into the new directory and prepare for compiling:
  14. Once finished we'll compile and install it:
  15. The module will be installed in /usr/lib64/php/modules/ as /usr/lib64/php/modules/uploadprogress.so.
  16. Add the following line your /etc/php.ini:

    NOTE:

    Place under the'Dynamic Extensions' section!
    If you are using FastCGI, edit the domain's 'php.ini' file (i.e. /var/www/vhosts/your_domain/etc/php.ini)!

  17. Reboot Apache:

Resources

Downloading PECL extensions

There are several options for downloading PECL extensions, such as:

  • The pecl install extname command downloads the extensions code automatically, so in this case there is no need for a separate download.
  • » https://pecl.php.net/ The PECL web site contains information about the different extensions that are offered by the PHP Development Team. The information available here includes: ChangeLog, release notes, requirements and other similar details.
  • pecl download extname PECL extensions that have releases listed on the PECL web site are available for download and installation using the » pecl command. Specific revisions may also be specified.
  • SVN Most PECL extensions also reside in SVN. A web-based view may be seen at » https://svn.php.net/pecl/. To download straight from SVN, the following sequence of commands may be used:

    $ svn checkout http://svn.php.net/repository/pecl/extname/trunk extname
  • Windows downloads The PHP project compiles and offers Windows DLLs for most PECL extensions on the respective package page.
There are no user contributed notes for this page.

Install Pecl On Ubuntu 20.04

  • Installation of PECL extensions