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.