Fixing 404 Errors In Magento/Ubuntu

fixing-404-errors-on-magento

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.

Magento 404 - Allow Override Fix

Do a quick restart of your server using the following command

sudo service apache2 restart

Apache2 Magento 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!

Written By Ed Baxter
Hi I'm Ed. By day I'm a search engine marketer working from Sheffield in the UK. By night I'm a designer and blogger, I've worked on a variety of ecommerce websites and in my spare time I love to play tennis. I love to socialise with anyone interested in the web so feel free to drop me a line! Check out Ed Baxter on Check out Ed Baxter on Google+
Arash
11 Nov 2011 @ 15:23

Thanks a lot. I got really crazy by getting this 404 error. :)

Reply
RG
16 Sep 2011 @ 20:23

I 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

Reply
Ed Baxter
21 Sep 2011 @ 20:58

Hi 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!

Reply

Leave a Reply