0

I installed Magento 2.4.2 in my local. Installed Apache2, composer 2, MySQL 8 and enabled extensions. Installed M2.4.2, after running all commands, it is showing 404 both frontend and admin. I checked the below links too. But not working...

Reference links:

  1. Magento 2: Static files are present but shows 404
  2. 404 not found error for admin page

2 Answers 2

0

Try to run these commands.

php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento indexer:reindex
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
sudo chmod -R 777 var/ generated/ pub/
2
  • Tried all these commands. Sep 27, 2021 at 10:09
  • Confirm you do this things : /etc/apache2/apache2.conf. Sep 27, 2021 at 11:10
0

I missed configuring the virtual host. Followed this tutorial, After that it is working.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.