Human_BetaRelease
Human_BetaRelease

Reputation: 327

Ubuntu Update PHP Version to 7.4 not recognized in php -v

Base System: Ubuntu16.4; Bundled with a bitnami Wordpress installation

Goal:

Properly install PHP7.4

Status

Behaviour of the system after apt-get install php7.4:

BUT

How is this even possible? O_o

Upvotes: 1

Views: 2599

Answers (1)

Jota Martos
Jota Martos

Reputation: 4714

Bitnami Engineer here,

We do not provide WordPress deployments with PHP 7.4 but you can follow these steps to achieve it:

  • Launch a new instance in LightSail with LAMP 7.3 (do not worry, we will remove its content and install LAMP 7.4). Please note that you will install a Bitnami stack so the 512MB or 1GB of RAM instance types will probably have problems during the installation.
  • Install LAMP 7.4 in your instance (this will remove the LAMP 7.3 data as well)
cd /tmp
sudo /opt/bitnami/ctlscript.sh stop
sudo rm -rf /opt/bitnami
wget "https://downloads.bitnami.com/files/stacks/lampstack/7.4.7-0/bitnami-lampstack-7.4.7-0-linux-x64-installer.run
chmod +x ./bitnami-lampstack-7.4.7-0-linux-x64-installer.run
sudo ./bitnami-lampstack-7.4.7-0-linux-x64-installer.run --prefix /opt/bitnami

Once you confirm everything works as expected, you can stop your previous instance of WordPress.

Happy to help!

Upvotes: 1

Related Questions