search
HomeTopicsPagoda PanelExample of installing third-party PHP extension on Pagoda Panel

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

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. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

MinGW - Minimalist GNU for Windows

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.