Unfortunately, the Bitnami-bundled Apache server is only compiled with support for PHP 5.6.
If you are OK keeping the Apache installed via "apt-get", you would need to adapt the Apache configuration to include the default Bitnami virtual host. It will probably be easier to symlink the
/opt/bitnami/apache2/conf/bitnami/bitnami.conf file to the following directories:
You can do it with the following command:
ln -s /opt/bitnami/apache2/conf/bitnami/bitnami.conf DESTINATION
However, I cannot guarantee it will work at once, as post configuration may be needed. Also, keep in mind you will need to restart your Apache service.
If you prefer to use a Bitnami PHP 7.1 server, you would need to do this, which basically consists of extracting a pre-configured "apache2" directory for PHP 7.1 (e.g. from the Bitnami LAMP stack for PHP 7.1), to your new installation, but maintaining the original "conf" directory:
If you really want to do this, please be careful and make sure to backup. These are the steps:
- Stop all services and backup the entire installation directory: https://docs.bitnami.com/aws/apps/elk/#backup
- Rename the installation directory, e.g.
/opt/bitnami -> /opt/bitnami-old. Inside "bitnami-old", rename
apache2 -> apache2-old.
- Download and install LAMP 7.1 **to the same exact installation directory ("
/opt/bitnami"). You can download LAMP from this location: https://bitnami.com/stack/lamp/installer
- Copy the "apache2" directory into
bitnami-old", stop all LAMP services and delete/opt/bitnami
(where LAMP is installed). You should also backup this apache2 directory (e.g.cp -rf /opt/bitnami/apache2 /opt/backup-apache`).
/opt/bitnami, and copy all files inside
I hope it helps!