The following PHP extension is missing: curl AMP WordPress
We were trying to install official AMP in WordPress. Once we activated the plugin we got into the following issue:
The following PHP extension is missing: curl
Form the above error message we got a clear idea that the server we were running our WordPress project was looking for a library called curl. The php-curl was not installed on the server. We tried to install it in many ways but finally, the following approach worked.
In our case, the PHP version was PHP 7.0. So, we tried:
$ sudo apt-get install php7.0-curl
Then restart the webserver:
$ sudo service apache2 restart