php 扩展模块安装

1.cd /root/php-5.6.20
2./usr/local/php/bin/php -m | grep -i curl
编译 curl 模块
cd ext/curl
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install

报错:
configure: error: Please reinstall the libcurl distribution -
    easy.h should be in <curl-dir>/include/curl/

解决: yum -y install libcurl*

3.vi /usr/local/php/etc/php.ini

php 扩展模块安装_第1张图片
extension=curl.so

4.查看 动态扩展模块
grep '^extension=' /usr/local/php/etc/php.ini

你可能感兴趣的:(PHP,扩展模块安装)