By Ankit Tiwari
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.