linux 不重新编译PHP 增加扩展
2014-09-16 15:48
549 查看
**举例增加openssl扩展**
#下面是php的安装目录
/usr/local/php5/bin/
#切换到php安装目录的 etx/openssl目录
cd /php-5.3.8p/ext/openssl
#查看openssl目录下有个config0.m4,把config0.m4改名为config.m4。
cp config0.m4 config.m4
#依次执行:
/usr/local/php5/bin/phpize
./configure –with-openssl –with-php-config=/usr/local/php5/bin/php-config
make && make install
#然后找到php.ini所在位置 打开 extension_dir(如果没有则自行添加), 同时添加 extension = "openssl.so"
#重启服务器 即可
#openssl 查看方法:
/usr/local/php5/bin/php -i |grep openssl
#下面是php的安装目录
/usr/local/php5/bin/
#切换到php安装目录的 etx/openssl目录
cd /php-5.3.8p/ext/openssl
#查看openssl目录下有个config0.m4,把config0.m4改名为config.m4。
cp config0.m4 config.m4
#依次执行:
/usr/local/php5/bin/phpize
./configure –with-openssl –with-php-config=/usr/local/php5/bin/php-config
make && make install
#然后找到php.ini所在位置 打开 extension_dir(如果没有则自行添加), 同时添加 extension = "openssl.so"
#重启服务器 即可
#openssl 查看方法:
/usr/local/php5/bin/php -i |grep openssl
相关文章推荐
- linux不重新编译php增加openssl扩展
- linux不重新编译php增加openssl扩展
- Linux环境下不重新编译php添加扩展模块
- LINUX下PHP编译添加相应的动态扩展模块so(不需要重新编译PHP,以openssl.so为例)
- linux 添加gd扩展(不重新编译php)
- php 不重新编译增加新扩展的方法
- LINUX下PHP编译添加相应的动态扩展模块so(不需要重新编译PHP,以openssl.so为例)
- LINUX下PHP编译添加相应的动态扩展模块so(不需要重新编译PHP,以openssl.so为例)
- php 不重新编译增加openssl扩展
- Linux下已编译PHP增加扩展so的方法,关键phpize 和config.m4
- LINUX下PHP编译添加相应的动态扩展模块so(不需要重新编译PHP,以openssl.so为例)
- linux(fedora)下freetds编译安装及编译php的mssql扩展
- linux 下编译安装php mongodb扩展
- Linux下编译php不编译mysql让php支持mysql扩展
- 不重新编译PHP文件的情况下php GD库扩展库的编译安装(centos)
- 不重新编译php, 扩展gd库
- linux下为已经编译好的php环境添加新的扩展
- 不重新编译php, 安装curl扩展
- 不重新编译PHP为php增加openssl模块的方法