Welcome to the Linux Foundation Forum!

Installation PHP7.3 on Ubuntu failed

Posts: 1
edited June 2021 in Web Management

Hello,

I try to install PHP7.3 in a VM Ubuntu Server and it's not possible. I tried the following:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.3

and I get:

The following packages have unmet dependencies.
php7.3 : Depends: libapache2-mod-php7.3 but it is not going to be installed or
php7.3-fpm but it is not going to be installed or
php7.3-cgi but it is not going to be installed
Depends: php7.3-common but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I tried in two different server and always get the same. When I install another package, for example zip, it's installed without any problem.

Thanks!!

Comments

  • Hi Iomi

    You need to install the required PHP modules dependencies before you run PHP7.3 successful.

    sudo apt install php7.3-mysql php7.3-curl php7.3-json php7.3-cgi php7.3-xsl

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training