Hướng dẫn enable php-curl extension ubuntu
Last updated on: 2021-12-02 Show Authored by: Alfonso Murillo This article shows how to enable the PHP cURL extension for it to be used in a server that uses an Ubuntu LAMP stack. ProcedureCheck the version of php your server is running on: It would look as follows:
Note: For this exercise, PHP 7.4 is being used, the package that you will install needs to match the version of PHP your server is running on. The installation will be made through Search for the curl package, you can use
For PHP 7.4 version you will need to install the cURL Extension for PHP using the following command:
Once installed, review the syntax to ensure the Apache can be restarted without issues. Note: In case Apache is unable to restart properly, this could lead to downtime. After the installation is completed you will need to restart the Apache server.
ConclusionAfter following the instructions above, you will be able to user cURL on an Ubuntu LAMP stack. Related Articles
©2020 Rackspace US, Inc. Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License See license specifics and DISCLAIMER View Discussion Improve Article Save Article View Discussion Improve Article Save Article CURL stands for Client URL. It is a Linux Terminal command which is used to transferring data from one server to another server. It is a free and open-source data transfer tool that uses the following protocols: IMAP, IMAPS, POP, POP3, POP3S, DICT, FILE HTTP, HTTPS, SMB, SMBS, SMTP, SMTPS, FTP, FTPS, TELNET, RTSP, RMTP, and TFTP. It displays a meter-like progress bar while running and indicating various parameters like the amount of transferred data, speed of data transfer and estimated time left. Following are the steps for the installation of PHP-CURL on your Ubuntu system:
PHP is a server-side scripting language designed specifically for web development. You can learn PHP from the ground up by following this PHP Tutorial and PHP Examples. |