

Php7.2-curl : Depends: libcurl3 (>= 7.44.0) but it is not installableĮ: Unable to correct problems, you have held broken packages.Įrror when i am doing composer update The requested PHP extension ext-curl * is missing from your system. The following packages have unmet dependencies:

The following information may help to resolve the situation: Requested an impossible situation or if you are using the unstableĭistribution that some required packages have not yet been created The only difference is the terminal is bash and everything runs in Ubuntu.I want to install curl extension in my current php-project(php version is 7.2.34) for that i use this command sudo apt-get install php7.2-curl it's throwing following error and it's not showing in the list when i run php -m command ,How to install curl extension please help me to fix this issue. I get the same VSCode settings and keybindings as in Windows.

From there, I can clone a project, switch to that directory, type code. Sudo php composer-setup.php -install-dir =/usr/local/bin -filename =composer You can add or remove extensions from that list, based on your needs.ĭon't forget the PHP package manager Composer wget -O composer-setup.php Then you can install the PHP extensions with: sudo apt install php7.4. For now, you can install PHP 7.4 with: sudo apt install php-cli It also using npm, to install Yarn.Īs of when I wrote this, sudo apt install php-cli installs PHP7, not PHP8. I had issues using Node, when isntalled with apt-get install node and never when doing it this way: curl -o- | bash source ~/.bashrc NVM allows switching node versions, which is cool. I found that installing Node with NVM works the best. This is a good time to setup SSH and git credential managment, which I explained at the end of this post. Once Ubunutu is installed, open it up and set a root username and password. You should see an option to install through the Microsoft store.
How to install curl php 7 ubuntu windows#
Open the Windows start menu and type "Ubuntu 20.04 LTS". Install Ubuntuįirst you will need a Ubuntu. You can start by searching for PHP 7 modules in the apt package repository. You may now proceed to set up the modules based on your application requirements. If you do not have WSL2 installed, please checkout my post about installing Windows Linux Subsystem. Once you are done with that tutorial, specifically the PHP install section then you can proceed with this tutorial. In this post I will show what I do after setting up WSL2 for PHP and JavaScript development. I have a similar post about setting up the PHP 8 linux. This is Linux is mainly used for WordPress development.

This post is about setup for PHP7 web development for Windows. Best Solution PHP 7.4: sudo apt-get install php7.4-curl PHP 7.3: sudo apt-get install php7.3-curl PHP 7.2: sudo apt-get install php7.2-curl PHP 7.1: sudo. I like that when I totally mess up a Linux, I can delete it and rebuild it. I usually have two Linuxes on my computer. Next, install the repository ppa:ondrej/php, which will give you all your versions of PHP: sudo add-apt-repository ppa:ondrej/php. I have been using Windows for PHP and JavaScript development for a few years now.
