

the codes above automatically handle those parts. Because it doesn’t require enabling and diable the other related service for that desired PHP version.
#PHP CURL INSTALL UBUNTU UPDATE#
Step 2: Then, update the server: sudo apt update. curl is a command-line utility for transferring data from or to a remote server. You can check your new PHP version by this php -v Step 1: Install PHP libraries for the server by running the following command: sudo add-apt-repository ppa:ondrej/php. You can see if curl is activated: php -i | grep -i curl E: Couldnt find any package by regex php7. I tried also to specify the cURL version using: sudo apt-get install php7.1-curl but i got. Now you’re ready to install PHP 7. Finally, you update apt-get again so your package manager can see the newly listed packages: sudo apt-get update.

sudo apt-get install php7.4-mbstring (I moved to php7.4) And it run perfectly. I have to be specific, then i run command. If i just run php-mbstring, will just install mbstring for php 8.0 not version installed on system. Now restart your apache: sudo service apache2 restart Im using php7.1 on Ubuntu 17.04, I have tried to install cURL using this command: sudo apt-get install php-curl but I get this: Package php-curl has no installation candidate. Next, install the repository ppa:ondrej/php, which will give you all your versions of PHP: sudo add-apt-repository ppa:ondrej/php. sudo apt-get install php-mbstring But turns out, i have to be specific what version that i want to install. This will install a dependency package, which depends on the default PHP version. Also, I have used it for the single PHP version on my system, but if you want to use it for a specific PHP version let’s say PHP 7.2 then replace the php-curl - php7.2-curlįor PHP 7.2 sudo apt-get install php7.2-curl Trying to install php-curl at ubuntu keeps failing. PHP 7.4 is set as the default version of PHP by Selection number 2 for the command line. To enable the PHP-curl on Linux ubuntu, you need to install the package using this. The following are the steps to add ext-curl extension in Ubuntu. I have created a few steps here which are easy to remember and follow, especially for Linux Ubuntu. But, most of them are complex and not easy to remember to follow step by step if try to implement them on our own after some particular time especially when we don’t have the reference URL saved in our browser history to pick them faster. There are lots of ways/posts available over the internet to describe the process of stitching the php-curl version through the terminal if we have multiple PHPs installed in our system.
