Is Magento 2 backend not working? Solutions for 3 main issues

When installing Magento 2 extensions you can see 404 Error Page Not Found, as Magento 2 Admin Panel is not working. 

Magento 2 admin not found

Issue #1: the result of installing or updating

You can see the ‘error’ message after:

  • installing a new extension;
  • upgrading extension;
  • applying Magento 2 core or extensions patch.

Solution #1: flush Magento 2 cache

via the Command line

Type in the next command to your Command line:

php bin/magento cache:clean
rm -rf var/cache/*
rm -rf var/generation/*

via the Admin Panel

Go to the Admin Panel> Systems> Cache Management:

flush-magento-cache

Then log out and log in back. If you see the ‘404 Error Page not found error on extension admin route update Installing’ message, contact the extension provider for more details.

Issue #2: the permission role is set incorrectly

The ‘404 Error’ or ‘Page not found’ is displayed in the backend. 

Solution #2: reset the permission role of your administrator

Go to the Admin Panel> Systems> Permission> User Roles:

permission-roles-magento

  • Select the role name that needs to be edited, e.g.: ‘Administrators’;
  • Switch to the ‘Role Resources’ menu:

role-resources-menu-magento

  • Set the ‘Resource Access’ to ‘All’;
  • Save the role and clear Magento 2 cache after the settings are completed.

Issue #3: just-out installation on Ubuntu, CentOS, Debian…

In this case the ‘Not Found’ message is displayed on the frontend when you try to access a page.

Solution #3: edit the configuration file

E.g.: Ubuntu file /etc/apache2/apache2.conf

  • use the command:

sudo vi /etc/apache2/apache2.conf

  • change the piece of code:

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

  • for this one:

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

  • use the command to restart Apache:

sudo service apache2 restart.

Rate the answer?