Home>Article>Topics> Example of installing third-party PHP extension on Pagoda Panel

Example of installing third-party PHP extension on Pagoda Panel

藏色散人
藏色散人 forward
2020-12-02 14:44:44 3978browse

The following tutorial column ofPagoda Panelwill share with you examples of installing third-party PHP extensions. I hope it will be helpful to friends in need!

Example of installing third-party PHP extension on Pagoda Panel

Example of installing third-party PHP extension

The PHP installation path of Pagoda panel is /www/server/php/ and supports multiple Two PHP versions coexist, so the method of installing PHP extensions is slightly different from those examples on the Internet. Next, I will explain how to install third-party PHP extensions by installing the oauth extension.

Note:

1. Before installation, please go to the software list - find the corresponding PHP version - settings - install extensions to see if we provide one-click installation of the extension you want

2. 54 in the following command is the PHP version

1. Download the extension source code (some extension versions need to correspond to the PHP version):

wget http://pecl.php.net/get/oauth-1.2.3.tgz

2. Unzip (please use zip format) Use the unzip command to decompress):

tar xvf oauth-1.2.3.tgz

3. Enter the source code directory:

cd oauth-1.2.3

4. Generate configuration (a few extensions may need to specify the directories of other dependent libraries, please modify the compilation parameters according to the official instructions) ):

/www/server/php/54/bin/phpize

./configure --with-php-config=/www/server/php/54/bin/php-config

5. Compile and install:

make && make install

6. Write configuration file

echo "extension = oauth.so" >> /www/server/php/54/etc/php.ini

7. Reload PHP

/etc/init.d/php-fpm-54 reload

8. Check whether the installation is successful

/www/server/php/54/bin/php -m|grep -i OAuth

9. Clean up useless files

cd .. && rm -rf oauth-1.2.3*

The above is the detailed content of Example of installing third-party PHP extension on Pagoda Panel. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:bt.cn. If there is any infringement, please contact admin@php.cn delete