cancel
Showing results for 
Search instead for 
Did you mean: 

404 error after installing magento in ubuntu2.x

404 error after installing magento in ubuntu2.x

i have installed , and after install Magento2 when i open in browser it shows

 

i cant able to fix it :

note : i have give all permission to the files

Whoops, our bad...

The page you requested was not found, and we have a fine guess why.

        If you typed the URL directly, please make sure the spelling is correct.
        If you clicked on a link to get here, the link is outdated.

What can you do?
    Have no fear, help is near! There are many ways you can get back on track with Magento Store.

        Go back to the previous page.
        Use the search bar at the top of the page to search for your products.
        Follow these links to get you back on track!
        Store Home | My Account

2 REPLIES 2

Re: 404 error after installing magento in ubuntu2.x

Well that's the 404 page. Whichever URL you're trying to load is throwing 404. From the info you provided nobody can tell you why. More context is needed.

Founder at https://agency418.com

Re: 404 error after installing magento in ubuntu2.x

It seem your url rewrite is not working. To enable rewrite follow these steps :
 
Enable Rewrite modesudo a2enmod rewrite

To Configure apache for Ubuntu / Debian edit the file /etc/apache2/apache2.conf. To edit this file, you can run command
 
sudo vi /etc/apache2/apache2.conf 
 
Modify from:
<Directory /var/www/>
      Options Indexes FollowSymLinks
      AllowOverride None
      Require all granted
</Directory>
to
 
<Directory /var/www/>
       Options Indexes FollowSymLinks
       AllowOverride All
       Require all granted
</Directory>
Then restart apache :

sudo service apache2 restart
or
sudo /etc/init.d/apache2 restart