Use phpize to install the php Module

Source: Internet
Author: User
When compiling php, I forgot to add an extension. Later I wanted to add the extension. However, after installing php, I installed something like PEAR and didn't want to delete the Directory and reinstall it, php has such a function. Phpize is used to expand the php extension module. You can use phpize to create a php plug-in module. The following describes how to install openssl as an example to find the ext folder of the source code package.

When compiling php, I forgot to add an extension. Later I wanted to add the extension. However, after installing php, I installed something like PEAR and didn't want to delete the Directory and reinstall it, php has such a function. Phpize is used to expand the php extension module. You can use phpize to create a php plug-in module. The following describes how to install openssl as an example to find the ext folder of the source code package.

When compiling php, I forgot to add an extension. Later I wanted to add the extension. However, after installing php, I installed something like PEAR and didn't want to delete the Directory and reinstall it, php has such a function.
Phpize is used to expand the php extension module. phpize can be used to establish a php plug-in module.
The following uses openssl installation as an example.
Find the ext folder of the source code package, and find the openssl directory.
Run the following command:
Cp config0.m4 config. m4
/Usr/local/php5/bin/phpize
./Configure-with-php-config =/usr/local/php5/bin/php-config
Make
Make install
The last step is to edit/usr/local/php5/lib/php. ini. (Note: Check the specific valid php. ini files ?)
Extension_dir = "/usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613 /"
Extension = "openssl. so"
Other edits are based on this type. After installing the external module, you can directly check through phpinfo or command line.
The command line check is as follows:
/Usr/local/php5/bin/php-m
Check whether openssl is properly mounted. If there is any problem, check the corresponding log file and handle the problem accordingly.

Original article address: Use phpize to install the php module. Thank you for sharing it with me.

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.