[Solved] How to fix the error: Please reinstall the libcurl distribution for NGINX Web Server.
If you’re running NGINX Web Server and you see the error message whilst setting up PHP “Please reinstall the libcurl distribution”, don’t panic! This error can be fixed quite easily. In order to fix the error, you’ll need to ensure that you have the latest version of the libcurl library installed. The easiest way to do this is to use a package manager like apt or yum. Once you have the latest version of libcurl installed, restart NGINX and the error should be gone.
The error message
checking for cURL support… yes
checking if we should use cURL for url streams… yes
checking for cURL in default path… not found
configure: error: Please reinstall the libcurl distribution – easy.h should be in /include/curl/
What causes this error message ?
curl.x86_64 7.15.5-2.el5 installed
curl.i386 7.15.5-2.el5 installed
curl-devel.x86_64 7.15.5-2.el5 base
curl-devel.i386 7.15.5-2.el5 base
Fixing the error
Restart the web server
Once you run the command above, you can restart your web server by using the following command:
sudo /etc/init.d/nginx restart
This will restart your NGINX web server. After you’ve restarted your web server, check your website to make sure it’s up and running. Keep in mind that restarting your web server will interrupt any currently active connections. So, if you have users currently viewing your website, they will be disconnected when you restart the server.
You can now try to compile PHP from source for NGINX web server.