Bitnami Magento Change App URL /Magento

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

bitnami magento change app url

bitnami magento change app url 2

mysql -u root -p -e “USE bitnami_magento; UPDATE core_config_data SET value =’http://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

magento commerce

rm -R -f /opt/bitnami/apps/magento/htdocs/var/cache/*;
rm -R -f /opt/bitnami/apps/magento/htdocs/var/session/*;

bitnami magento change app url 3

sudo /opt/bitnami/ctlscript.sh restart

“bitnami magento change app url getting javascript errors”

bitnami magento change app url 4

sudo /opt/bitnami/apps/magento/updateip –appurl http://54.204.98.116/

Fixed.

bitnami magento change app url 5

bitnami magento change app url 6

Now after the import some more errors with the static assets

bitnami magento change app url 7

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.

bitnami magento change app url 8

References:

Sam Deering is a web developer from England (currently living in Australia). In his spare time he enjoys coding, playing chess, reading and investing.

Leave a Reply

Your email address will not be published. Required fields are marked *