Thanks for the info. Please note that our stacks do not use the system binaries but our own built packages for Apache, PHP, MySQL and others. Because of that, you can not upgrade them using
apt-get or similar tools.
As an alternative, you can install the Bitnami LAMP Stack 7.2 on your server and use it to install the libraries you are trying to. We highly recommend you to create a server backup of your Lightsail instance using the guide below
After that, run the commands below to stop the current Bitnami installation and save a backup of your current installation.
sudo /opt/bitnami/ctlscript.sh stop
sudo mv /opt/bitnami /opt/bitnami.bck
Then, you can install the Bitnami LAMP Stack 7.2 in the same location (
/opt/bitnami) by running the commands below
chmod +x bitnami-lampstack-7.2.21-0-linux-x64-installer.run
sudo ./bitnami-lampstack-7.2.21-0-linux-x64-installer.run --prefix /opt/bitnami
Finally, you can restore your custom configurations from the backup
/opt/bitnami.bck folder into the new installation placed at
Hope it helps,