Chen Log

陳洛格

php的Curl 安裝

leave a comment »

sudo apt-get install php5-curl

You will need to restart the server afterwards:

sudo service apache2 restart

Alternatively, if you are using php-fpm, you’ll need to restart php5-fpm instead

sudo service php5-fpm restart

 

Edit php.ini

nano /etc/php5/apache2/php.ini 

find “dynamic extensions” add code below:

extension=curl.so

參考資料:

http://askubuntu.com/questions/9293/how-do-i-install-curl-in-php5

Advertisements

Written by chenagw

2013/06/16 at 18:50

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: