Wordpress uses the Curl and Openssl extensions to download the plugins, in case the extensions were disabled like this:
If it's windows:
;extension=php_curl.dll
;extension=php_openssl.dll
If it is like-unix (eg linux, mac osx, bsd):
;extension=curl.so
;extension=openssl.so
The Curl extension is used to access pages via HTTP and the Openssl extension is used to access Curl to access HTTPS pages, Wordpress plugins are in the Wordpress servers / repositories and are under the https://
protocol, so that PHP is able to download it is necessary to have both extensions enabled, so just remove the semicolon ( ;
) from the front and restart Apache afterwards.
If it's Windows leave it like this:
extension=php_curl.dll
extension=php_openssl.dll
If it's like-unix (linux, mac osx, bsd):
extension=curl.so
extension=openssl.so
Remember, for it to take effect you must restart Apache (or Nginx)
How to Restart Apache / Nginx
If it is Windows and Mac it will depend a lot on with installed, whether it was manually or whether it was with packages ready and whether it was installed as a service or not
To restart Apache on Linux:
Restart Nginx:
-
In Ubuntu generally:
sudo systemctl restart nginx
-
Other distros:
sudo service nginx restart
or:
sudo /etc/init.d/nginx restart