>  기사  >  백엔드 개발  >  不重新编译PHP替php增加openssl模块的方法

不重新编译PHP替php增加openssl模块的方法

WBOY
WBOY원래의
2016-06-13 10:56:05735검색

不重新编译PHP为php增加openssl模块的方法
不重新编译PHP为php增加openssl模块的方法。网站建设 www.ucantech.com

yum -y install openssl

/usr/local/bin/是php的安装目录
切换到php安装目录的etx/openssl目录
cd /usr/local/src/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,完成.(fblww-0104)

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.