Home  >  Article  >  Backend Development  >  How to manually install plug-ins in php

How to manually install plug-ins in php

藏色散人
藏色散人Original
2021-05-21 09:07:572084browse

How to manually install plug-ins in php: 1. Install related libraries, such as zlib, curl, xml, etc., and then set "--with-xxx"; 2. Specify the installation path through "phpize", and then pass "make install" command can be installed.

How to manually install plug-ins in php

The operating environment of this article: linux5.9.8 system, PHP7.1 version, DELL G3 computer

PHP installation plug-in method

There are two main ways to install plug-ins in PHP:

1. First install the relevant libraries, such as zlib, curl, xml, etc., and then set -- in ./configure when installing PHP. With-xxx (the plug-in you need), just install the trilogy.

2. Some plug-ins are available in the PHP source code package (/path/php/ext), and some need to be downloaded:

  cd xxx
  phpize (指明你的安装路径)
  ./configure --with-php-config=/usr/local/php/bin/php-config --with-xxx(有些需要其他 with)
  make
  make install

Recommended learning: "PHP Video Tutorial

The above is the detailed content of How to manually install plug-ins in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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