Jun
Fixing 404 Errors In Magento/Ubuntu
Recently I got a new Ubuntu server and decided that I’d use it as a development server for projects. So after installing the required software to run it as a web server I decided to install Magento (ver 1.5.1.0) for some testing. After following the SSH instructions on Magento’s site and successfully installing it…I ran in to a problem.
Every page except the homepage would produce a 404 error. Which as you can imagine wasn’t ideal. So how did I fix it?
Well the fix was extremely easy…if you know where to look. You need to edit a file called 000-default. Run this command to edit the file:
sudo nano /etc/apache2/sites-enabled/000-default
Then changed AllowOverride None to AllowOverride All.

Do a quick restart of your server using the following command
sudo service apache2 restart

And your problems should be solved. If you ran into this problem or if you have another problem I’d love to hear about it in the comments below!






3 Comments (Tell Us What You Think)
Arash
11 Nov 2011 @ 15:23Thanks a lot. I got really crazy by getting this 404 error.
RG
16 Sep 2011 @ 20:23I am trying to install Magento 1.5.10 in Ubuntu. I am stuck with 404 error when I tried to install magento ecommerce site using the URL http://127.0.0.1/magento. Can you help?
Thanks
Ed Baxter
21 Sep 2011 @ 20:58Hi RG,
I’d love to help, perhaps you could share a few more details on the problem?
Do you have a .htaccess file in your websites root? Did the website install ok?
Let me know!