简体   繁体   中英

Install PHP 7.4 on Ubuntu 18.10

We are trying to install PHP 7.4 to Ubuntu 18.10.

We tried all the following commands, but it always shows errors like E: Couldn't find any package by regex 'php7.4'

sudo apt-get install php7.4 sudo apt install php7.4 sudo apt-get install -y php7.4

All the above commands are not working so

We also tied to install 7.3 but had the same issue.

在此处输入图像描述

How to Install PHP 7.4 on Ubuntu 18.10.

login into your system, and run the following commands:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade

#install php7.4 (if not installed) with:
sudo apt-get install php7.4

That's it.

Remember to install the necessary modules for your application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM