Curl not working in nginx-Solution

If  anyone started receiving an error stating that the function curl_init could not be loaded. Here’s the command you will need to solve the problem.

SSH onto your server and run the following command to get the PHP Curl package:

sudo apt-get install php5-curl

You may need to do a server restart afterwards with the following command:

sudo service php5-fpm restart
sudo service nginx restart

Or if you’re running apache with a similar problem:


sudo service apache2 restart

 

Advertisements

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