PHP installation and compilation configuration extension

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.