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

Example of installing third-party PHP extension on Pagoda Panel

藏色散人
Release: 2020-12-02 14:44:44
forward
4165 people have browsed it

The following tutorial column of Pagoda Panel will 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
Copy after login

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

tar xvf oauth-1.2.3.tgz
Copy after login

3. Enter the source code directory:

cd oauth-1.2.3
Copy after login

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
Copy after login

5. Compile and install:

make && make install
Copy after login

6. Write configuration file

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

7. Reload PHP

/etc/init.d/php-fpm-54 reload
Copy after login

8. Check whether the installation is successful

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

9. Clean up useless files

cd .. && rm -rf oauth-1.2.3*
Copy after login

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!

Related labels:
source:bt.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template