-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
I have a fully working installation of Magento. Customer pages and admin pages both work perfectly. I can browse products and make orders as a customer. I can login to admin pages, see the orders, add new products, see dashboard etc. But as soon as I hit the "Flush Magento Cache" -button from admin I will jump to Magento 404 page and Admin is not accessible.
Preconditions
- Magento CLI version 2.1.1 with sample data
- Ubuntu 16.04.1
- PHP 7.0.11-1
- Apache 2.4.18
- MySQL 5.7.15
- VMWare 8.5
Steps to reproduce
- Open magento admin page and login
- Go to System / Cache management
- Click "Flush Magento Cache" -button
Expected result
- Caches Flushed and return to admin pages
Actual result
- 404 error and admin not accessible
After hitting the 404 problem in Admin I have:
- Checked rewrite module is still running.
- sudo php ./magento cache:clean
- sudo php ./magento cache:flush
- MAGENTO2_ROOT > var > cache > DELETE ALL
- MAGENTO2_ROOT > var > page_cache > DELETE ALL
- MAGENTO2_ROOT > var > session > DELETE ALL
- MAGENTO2_ROOT > var > view_preprocessed > DELETE ALL
- MAGENTO2_ROOT > pub > static > DELETE ALL EXCEPT .HTACCESS
- cp MAGENTO2_ROOT/pub/.htaccess ../.
- sudo php ./magento setup:static-content:deploy
- sudo php ./magento indexer:reindex
- Checked the core_config_data table, no changes before and after problem
- Double Checked the admin uri from configs. (Have not changed it at any point)
- Checked Magento2_root/var/log files but nothing printed there
- Check the /var/log/apache2 access and error logs and nothing broken there
- sudo service apache2 restart
None of the above works to restore the admin back on. It always gives 404. Only way to fix it seems to be to make a new fresh install. Or now that I have it in VMWare I can go back to previous image and admin will work again just fine. But as soon as I hit the "Flush Magento Cache" -button the admin will break to 404 and no way to fix it.