添加FB登陆时,需要curl扩展

安装curl扩展遇到一个傻逼问题

[root@xxx openssl]# /usr/local/php/bin/phpize
Cannot find config.m4.
Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module

对于这个问题其实是要到php的源码包中去执行的

cd php-5.5.30/ext/curl

/usr/local/php/bin/phpize

./configure --with-php-config=/usr/local/php/bin/php-config --with-curl=/usr/local/curl

make

make install

 

在php.ini中添加下面这段代码

extension = curl.so

 

posted @ 2016-03-28 22:56  JasonXu_徐晓峰的博客  阅读(189)  评论(0编辑  收藏  举报