php不用编译增加openssl的方法
2014-02-13 17:27
239 查看
#下面是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为php增加openssl模块的方法
- 不重新编译PHP为php增加openssl模块的方法
- 不重新编译PHP为php增加openssl模块的方法
- Linux下已编译PHP增加扩展so的方法,关键phpize 和config.m4
- php无需编译安装openssl扩展的实现方法
- php 不重新编译增加openssl扩展
- linux不重新编译php增加openssl扩展
- linux不重新编译php增加openssl扩展
- php 不重新编译增加新扩展的方法
- Windows 下OpenSSL 安装详解 +图解/windows下openssl编译过程及ml等错误/MASM 8.0 下载 安装方法
- phpize 编译安装php扩展的时候出现Cannot find autoconf的解决方法
- php自编译模块方法
- 带着项目学PHP第六讲 - ecshop增加广告和广告位的方法
- PHP编译过程中常见错误信息的解决方法
- php-5.6.3编译时出错解决方法
- PHP源码包编译安装错误及解决方法汇总
- Web_PHP_DedeCMS_dedecms织梦网站栏目增加英文名称的方法;
- linux 不重新编译PHP 增加扩展