Do not recompile PHP to add the openssl module for php. Copy the code as follows: yum-yinstallopensslusrlocalbin is the php installation directory switch to the php installation directory etxopenssl directory cdrootsoftphp-5.2.8extopenssl copy code
The code is as follows:
Yum-y install openssl
/Usr/local/bin/is the php installation directory.
Switch to the etx/openssl directory in the php installation directory.
Cd/root/soft/php-5.2.8/ext/openssl
The code is as follows:
/Usr/local/bin/phpize
Cannot find config. m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module
Check that the openssl directory contains config. w32 and config0.m4, and change config0.m4 to config. m4.
Mv config0.m4 config. m4
Run:
The code is as follows:
/Usr/local/bin/phpize
Compile:
The code is as follows:
./Configure -- with-openssl -- with-php-config =/usr/local/bin/php-config
Make; make install
After the prompt is successful, add extension = openssl. so to php. ini.
Restart apache or php-fpm.
PS: Why is config0.m4 in the directory instead of config. m4.
The Directory of pcre, zlib, and other modules is also config0.m4.
The http://www.bkjia.com/PHPjc/323688.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/323688.htmlTechArticle code is as follows: yum-y install openssl/usr/local/bin/is the php installation directory switch to the php installation directory etx/openssl directory cd/root/soft/php-5.2.8/ext/openssl...