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!
3
Answers
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
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.
php.ini
file to increase upload size.First of all you need to install the version of PHP you need so you can run these commands :
Then to switch between versions run this :
now you’ll get to choose you desired PHP version