简体   繁体   中英

How do I change the php version using bitnami/linux terminal for my php app

So I'm using AWS with bitnami using a linux terminal for my php application. But I need to switch my PHP version from 7.2 to 5.6, and I can't figure out how. I've never used Linux so I'm having trouble, can anyone help?

I've tried this link: https://tecadmin.net/switch-between-multiple-php-version-on-ubuntu/

unfortunately none of those commands worked

If anyone is able to help I'd appreciate it very much!

Thank you!

Bitnami deployments don't support multiple versions of the same component. You will need to install a different stack, in this case the LAMP 5.6 stack (which is not supported anymore) and deploy your PHP code on top of it as you did in the instance you have.

You can download the last version of the Bitnami LAMP solution by running these commands

cd /tmp
curl -LO "https://downloads.bitnami.com/files/stacks/lampstack/5.6.40-1/bitnami-lampstack-5.6.40-1-linux-x64-installer.run
chmod +x ./bitnami-lampstack-5.6.40-1-linux-x64-installer.run
sudo ./bitnami-lampstack-5.6.40-1-linux-x64-installer.run

This new installation will use different ports to configure Apache, MySQL, ... if you have another Bitnami installation in the instance. If you want to use the default ports, just stop the default installation.

sudo /opt/bitnami/ctlscript.sh stop
sudo mv /opt/bitnami /opt/bitnami.back

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