jasonevans1/vagrant-magento

links from magento homepage 404

Closed this issue · 2 comments

After your last fix I had a chance to play with it a bit more and see if I can get things working. I'm new to LAMP/vagrant/Magento so I apologize if I'm extra dense :).

Anyhow, after running vagrant up I find the site does not work. Some additional steps were needed to get things working at all:

  • in hosts file, map magento.localhost to 127.0.0.1
  • run vagrant reload

I have no idea why vagrant reload was needed... I noticed someone mention it in a prior closed issue. Until I did that, I could never get a response from the VM (trying http://192.168.33.10:8080/magento, http://magento.localhost:8080/magento, http://192.168.33.10:8080/, etc).

Anyhow, with those additional steps I can load http://magento.localhost:8080/magento/ and it looks like this screenshot: http://i.imgur.com/P4W7rZX.png. This looks promising, though being new to Magento I can't say its the expected result. The problem comes if I click any link, like for http://magento.localhost:8080/magento/customer/account/, it 404s. /var/log/httpd/error_log says:

[Tue Feb 11 02:14:39 2014] [error] [client 10.0.2.2] File does not exist: /vagrant_data/magento/wishlist, referer: http://magento.localhost:8080/magento/
[Tue Feb 11 02:14:47 2014] [error] [client 10.0.2.2] File does not exist: /vagrant_data/magento/sales, referer: http://magento.localhost:8080/magento/

And the actual contents of /vagrant_data/magento is:

[vagrant@localhost httpd]$ ls /vagrant_data/magento -l
total 700
-rwxr-xr-x  1 root root   2834 Feb 11 02:05 api.php
drwxr-xr-x  6 root root   4096 Feb 11 02:05 app
-rwxr-xr-x  1 root root   2741 Feb 11 02:05 cron.php
-rwxr-xr-x  1 root root    717 Feb 11 02:05 cron.sh
drwxr-xr-x  7 root root   4096 Feb 11 02:05 downloader
drwxr-xr-x  3 root root   4096 Feb 11 02:05 errors
-rwxr-xr-x  1 root root   1150 Feb 11 02:05 favicon.ico
-rwxr-xr-x  1 root root   5979 Feb 11 02:05 get.php
drwxr-xr-x  2 root root   4096 Feb 11 02:05 includes
-rwxr-xr-x  1 root root   2642 Feb 11 02:05 index.php
-rwxr-xr-x  1 root root   2366 Feb 11 02:05 index.php.sample
-rwxr-xr-x  1 root root   6441 Feb 11 02:05 install.php
drwxr-xr-x 12 root root   4096 Feb 11 02:05 js
drwxr-xr-x 14 root root   4096 Feb 11 02:05 lib
-rwxr-xr-x  1 root root  10421 Feb 11 02:05 LICENSE_AFL.txt
-rwxr-xr-x  1 root root  10679 Feb 11 02:05 LICENSE.html
-rwxr-xr-x  1 root root  10410 Feb 11 02:05 LICENSE.txt
-rwxr-xr-x  1 root root   1319 Feb 11 02:05 mage
drwxr-xr-x  6 root root   4096 Feb 11 02:05 media
-rwxr-xr-x  1 root root    886 Feb 11 02:05 php.ini.sample
drwxr-xr-x  2 root root   4096 Feb 11 02:05 pkginfo
-rwxr-xr-x  1 root root 585086 Feb 11 02:05 RELEASE_NOTES.txt
drwxr-xr-x  2 root root   4096 Feb 11 02:05 shell
drwxr-xr-x  5 root root   4096 Feb 11 02:05 skin
drwxr-xr-x  5 root root   4096 Feb 11 02:06 var

Any idea what I've done wrong here? Or is this working and perhaps there is some magento configuration I need to do manually?

Thanks.

I will update the readme. I do not know why you are getting a 404. My guess is it is a permissions problem? When I have time this week I will try to recreate this problem and let you know if I find anything.

Thanks.

Jason thanks I wanted to let you know that I am done looking at Magento for now, so personally this isn't a priority now.