This is my process of documenting changing the root url for magento installation on bitnami ami ec2 aws. Hopefully helps someone out trying to do the same thing!
vim /opt/bitnami/apps/magento/conf/magento.conf
mysql -u root -p -e “USE bitnami_magento; UPDATE core_config_data SET value =’https://54.204.98.116/’ WHERE core_config_data.path = ‘web/unsecure/base_url’; UPDATE core_config_data SET value =’https://54.204.98.116/’ WHERE core_config_data.path = ‘web/secure/base_url’;”
default pass: bitnami1
rm -R -f /opt/bitnami/apps/magento/htdocs/var/cache/*;
rm -R -f /opt/bitnami/apps/magento/htdocs/var/session/*;
sudo /opt/bitnami/ctlscript.sh restart
“bitnami magento change app url getting javascript errors”
sudo /opt/bitnami/apps/magento/updateip –appurl https://54.204.98.116/
Fixed.
Now after the import some more errors with the static assets
Bitnami megento 403 /opt/bitnami/apps/magento/htdocs/skin/frontend/base/default/css/widgets.css
Permissions error?
sudo chown -Rf daemon:daemon /opt/bitnami/apps/magento/htdocs/media/*
sudo chown -Rf daemon:daemon /opt/bitnami/apps/magento/htdocs/media/*
sudo usermod -a -G daemon bitnami
For some reason this code fixed it.
References: