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
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver CS6
Visual web development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.