Achu
Achu

Reputation: 61

PHP Curl is not loading

I have installed php curl. But still the curl module is not showing when I execute the command php -m.

OS version: Ubuntu 16.04 LTS PHP version: PHP 7.0.7

Installed modules for curl: curl, libcurl3, libcurl4-openssl-dev, php-curl, php7.0-curl

Please share your thoughts.

Thanks

Upvotes: 3

Views: 2985

Answers (1)

Achu
Achu

Reputation: 61

Fixed the issue with following steps:

Uninstalled php7.0-curl and curl by executing following commands:

sudo apt autoremove php7.0-curl
sudo apt autoremove curl

Then installed php-curl module again.

sudo apt-get install php-curl

Executed following commands to enable PHP 7.0 fpm

a2enmod proxy_fcgi setenvif
a2enconf php7.0-fpm

That's it. Now the curl module is loaded when checking "php -m" command. :)

Thanks.

Upvotes: 2

Related Questions