Home  >  Article  >  Backend Development  >  Questions about compiling and installing PHP

Questions about compiling and installing PHP

WBOY
WBOYOriginal
2016-12-01 00:56:451264browse

Anyone who has compiled and installed PHP knows that many parameters will be configured during compilation, as follows:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php /etc --enable-fpm --enable-pcntl --enable-mysqlnd --enable-opcache --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable -zip --enable-ftp --enable-soap --enable-xml --enable-mbstring --disable-rpath --disable-debug --disable-fileinfo --with-mysql --with-mysqli --with -pdo-mysql --with-pcre-regex --with-iconv --with-zlib --with-mcrypt --with-gd --with-openssl --with-mhash --with-xmlrpc --with- curl

Sometimes certain parameters will be discarded according to the version of php, and some versions will add certain parameters.
When I asked a question, I was asked to read the help, but it was all in English and I really couldn’t understand it.
Which expert can provide some information or resources? It’s in Chinese and mainly introduces the options for configuring PHP. 3q

Reply content:

Anyone who has compiled and installed PHP knows that many parameters will be configured during compilation, as follows:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php /etc --enable-fpm --enable-pcntl --enable-mysqlnd --enable-opcache --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable -zip --enable-ftp --enable-soap --enable-xml --enable-mbstring --disable-rpath --disable-debug --disable-fileinfo --with-mysql --with-mysqli --with -pdo-mysql --with-pcre-regex --with-iconv --with-zlib --with-mcrypt --with-gd --with-openssl --with-mhash --with-xmlrpc --with- curl

Sometimes certain parameters will be discarded according to the version of php, and some versions will add certain parameters.
When I asked a question, I was asked to read the help, but it was all in English and I really couldn’t understand it.
Which expert can provide some information or resources? It’s in Chinese and mainly introduces the options for configuring PHP. 3q

  1. An article from the previous year on this site https://segmentfault.com/a/1190000002717262

  2. Official document core configuration options http://php.net/manual/zh/configure.about.php

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