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
Sweety Masmiya
  • 1,371
  • 10
  • 21
Saravanan DS
  • 1,126
  • 1
  • 18
  • 42

2 Answers2

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/
Dhiren Vasoya
  • 9,484
  • 12
  • 33
  • 59
0

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

Saravanan DS
  • 1,126
  • 1
  • 18
  • 42