Curl is Install but it is disable on PHP 7 on RHEL 7 server

After check PHP -m command showing list of installed packages, In this list curl was shown but after a check on phpinfo page, curl didn’t install.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @ankitwpjust

As per Bobby’s reply you will need to restart the web server in order the changes you made to take effect.

Once you have installed CURL on server, you need to restart your webserver on which PHP is running:

If you are using Apache server then use either of the following commands to restart the server:

sudo service apache2 restart


sudo /etc/init.d/apache2 restart

Similarly, if you are using Nginx server, then use either of the following commands:

sudo systemctl restart nginx


sudo /etc/init.d/nginx restart

Hope that this helps! Regards, Alex


Note that if you’ve just installed curl for PHP you would need to restart your Apache service as well.

If this does not help, I would recommend checking in your php info file if there are any custom php.ini files loaded which could be causing the issue for you.

Hope that this helps! Regards, Bobby