Magento 2.4.2 Installation Giving 404 issue
-
15-04-2021 - |
Question
I am trying to install Magento2.4.2 . My system requirements seems fine. Installed PHP7.4 , Mysql 10, Elastic search 7.
And also I have ran this command first:
- sudo composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento2/
- bin/magento setup:install
--base-url=http://localhost/magento2
--db-host=localhost
--db-name=m242
--db-user=sammy
--db-password=Admin@123
--admin-firstname=admin
--admin-lastname=admin
--admin-email=admin@admin.com
--admin-user=admin
--admin-password=reset@123
--language=en_US
--currency=USD
--timezone=America/Chicago
--use-rewrites=1 - Reindex 4.deploy 5.compile 6.upgrade 7.cache clean
- permisson
And while running the site am getting the 404 error issue.
http://localhost/magento2
can some one please help me to get rid of this issue..
Thanks,
Solution
Check that your webserver serves the requests from the proper location. it should be referencing the <magento_proj_root>/pub
folder as Document Root.
https://devdocs.magento.com/guides/v2.4/install-gde/tutorials/change-docroot-to-pub.html
Details here as I discussed with someone else who had the same issue.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange