Magento – 127.0.0.1/admin page “Not Found”

404-pageadmininstallationmagento2

I'm installing Magento2

After I reached to "127.0.0.1/setup/#/success" and clicked "Launch Magento Admin" I got the "Not Found" page.

I'm sure that I have changed the administrator page to "admin" … that is also appeared in the success page.

If I try to open just 127.0.0.1 the page opens, but broken…. and if I click on any link in that page it takes me to the "Not Found" page

I,m using Apache/2.4.18 and php 5.6

If you have a solution … please use simple words and clear steps … I'm not that deep in this

Best Answer

I was also faced with this issue and managed to solve it with the help of this site

Here's where it comes down to:

First: enable mod_rewrite:

  1. open terminal
  2. enable mod_rewrite
  3. restart apache2

sudo a2enmod rewrite

sudo systemctl restart apache2

Secondly: adjust your .conf file:

  1. locate your .conf file
  2. add the <Directory ...> code
  3. restart apache2

ls /etc/apache2/sites-available

sudo nano /etc/apache2/sites-available/000-default.conf

Add this code below the tag:

<Directory /var/www/html>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Require all granted
</Directory>

sudo systemctl restart apache2

And now you should be able to surf to your own admin page

Note: you'll probably use the 000-default.conf, unless you have set up a different VirtualHost. In that case you need to change the 000-default.conf with your own VirtualHost.conf file and change the /var/www/html to point to your own public_html directory.

Note2: use ctrl-o in nano to save a file and ctrl-x to close it.

Related Topic