Report this

What is the reason for this report?

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

Posted on May 2, 2019

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.



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!

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.

Hello,

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

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

or

sudo /etc/init.d/apache2 restart

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

sudo systemctl restart nginx

or

sudo /etc/init.d/nginx restart

Hope that this helps! Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.