Created
February 1, 2020 17:47
-
-
Save davidmroth/791269c2440f914ebe7436e7615155c0 to your computer and use it in GitHub Desktop.
Upgrade PHP on Bitnami
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stop Bitnami LAMP stack | |
sudo /opt/bitnami/ctlscript.sh stop | |
# Backup Bitnami stack | |
sudo cp -ra /opt/bitnami /opt/bitnami_bck | |
# Move original Bitnami stack | |
sudo mv /opt/bitnami /opt/bitnami_orig | |
# Download updated LAMP stack | |
wget https://bitnami.com/redirect/to/656069/bitnami-lampstack-7.3.8-0-linux-x64-installer.run | |
# Install updated LAMP stack | |
sudo ./bitnami-lampstack-7.3.8-0-linux-x64-installer.run --prefix /opt/bitnami/ | |
#sudo cp -ra /opt/bitnami_bck/apps/wordpress /opt/bitnami/apps/ | |
# Remove site auth | |
vi /opt/bitnami/apps/wordpress/conf/htacces.conf | |
#disable auth lines | |
# Add wordpress app conf | |
echo Include "/opt/bitnami/apps/wordpress/conf/httpd-prefix.conf" | sudo tee -a /opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefi# | |
# Copy original Wordpess App | |
sudo cp -ra /opt/bitnami_orig/apps/wordpress /opt/bitnami/apps/ | |
#Comment out banner conf | |
> #Include "/opt/bitnami/apps/wordpress/conf/banner.conf" | |
# Restore Wordpress | |
cd ~/WordpressSiteSync | |
# Fix Apache SSL certs | |
sudo ./tools/restore_db ../backup/swallowtherapy.com/db_backup/db_backup.sql | |
# Restart apache | |
sudo /opt/bitnami/ctlscript.sh restart apache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment