Extension classification in PHP installation and compilation configuration: PHP Time: October 11, December 17, 2014
Some extensions are included in the PHP installation package. we forgot to install them during installation, and we need to add them in the later production process. what should we do in this case? It is actually quite simple, just like installing other extensions. The following uses the pcntl module as an example.
1. go to the php source code package and find the pcntl extension directory.
[Root @ php ~] # Cd./php-5.6.7/ext/pcntl/
2. use phpize to generate a configuration file
[Root @ php pcntl] # phpize [root @ php pcntl] #./configure
3. install make & make install
[Root @ php no-debug-non-zts-20131226] # ls bcmath. so gd. so opcache. a pcntl. so calendar. so mcrypt. so opcache. so pdo_mysql.so curl. so memcache. so openssl. so posix. so
4. configure php. ini to load the pcntl. so extension.
Extension =/usr/local/lib/php/extensions/no-debug-non-zts-20131226/pcntl. so
5. restart php-fpm and check phpinfo in the browser.
Appendix: install mongodb extension in php in Linux, memcache extension in php in Linux, and redis extension in php in Linux.