I have installed a bitnami magento ami on amazon EC2. moved the website and database and everythig run smoothly except that the website page elements like css an js files are looking for:

href="/opt/bitnami/apps/magento/htdocs/..

witch is causing the problem to load the page properly that should link to the relative path of the website. I followed all guidelines indicated on bitnami wiki but looks looks like i missed something. I would be glad for you help on this matter. Thanks.

asked 08 Feb '12, 13:10

flashback80's gravatar image

flashback80
1557
accept rate: 0%

edited 08 Feb '12, 13:12


This could be a problem with the URL. Did you change it? Did you run the mysql command to update it? Try to check the following steps:

Magento also saves the URL in the database. If you have changed the URL or you are trying to access from a different machine and Magento does not work, you have to modify the domain name or the URL you should run the following command to modify the database:

$ mysql -u root -p -e "USE bitnami_magento; UPDATE core_config_data SET value ='http://NEW_IP/magento/' WHERE core_config_data.path = 'web/unsecure/base_url'; UPDATE core_config_data SET value ='https://NEW_IP/magento/' WHERE core_config_data.path LIKE 'web/secure/base_url';"

And remove the cache:

$ rm -r /installdir/apps/magento/htdocs/var/cache/*
$ rm -r /installdir/apps/magento/htdocs/var/sessions/*
link

answered 09 Feb '12, 10:20

Beltran%20Rueda's gravatar image

Beltran Rueda ♦♦
11.1k81550
accept rate: 25%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×48
×8
×3
×2
×1

Asked: 08 Feb '12, 13:10

Seen: 974 times

Last updated: 09 Feb '12, 10:20

powered by BitNami OSQA