質問

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:

  1. sudo composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento2/
  2. 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
  3. Reindex 4.deploy 5.compile 6.upgrade 7.cache clean
  4. 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,

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません magento.stackexchange
scroll top