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

Posted May 2, 2019 3k views
ApachePHPLAMP Stack

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.

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.

Submit an Answer
2 answers


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!

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!