Reputation: 327
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:
find / -name php7*
=> all Files I find are 7.4-related (their name includes php7.4)
sudo a2enmod php7*
=> reports errors for any version except for php7.4
sudo /usr/bin/php7.4 -v
=> PHP 7.0.30 (cli) (built: May 11 2018 16:56:24) ( ...
BUT
php -v
=> PHP 7.0.30 (cli) (built: May 11 2018 16:56:24)...
Wordpress-Plugin to display version => Running PHP version: 7.0.30
How is this even possible? O_o
Upvotes: 1
Views: 2599
Reputation: 4714
Bitnami Engineer here,
We do not provide WordPress deployments with PHP 7.4 but you can follow these steps to achieve it:
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