Home > Backend Development > PHP Tutorial > 不从新编译PHP给php增加openssl模块记录

不从新编译PHP给php增加openssl模块记录

WBOY
Release: 2016-06-13 12:43:08
Original
830 people have browsed it

不重新编译PHP给php增加openssl模块记录
引用
yum -y install openssl


/usr/local/bin/是php的安装目录
切换到php安装目录的etx/openssl目录
cd /root/soft/php-5.2.8/ext/openssl

引用
/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

查看openssl目录下有个config.w32和config0.m4,把config0.m4改名为config.m4。
mv config0.m4 config.m4

执行:
引用
/usr/local/bin/phpize

编译:
引用
./configure --with-openssl --with-php-config=/usr/local/bin/php-config
make;make install

提示成功后,在php.ini里加入extension = openssl.so
重启apache或php-fpm,完成.


PS:为啥目录下是config0.m4,而不是config.m4,不理解。
pcre、zlib等模块目录下也是config0.m4。






http://www.9enjoy.com/php-install-openssl/

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template