I correctly installed magento 2 locally (v2.3.7) on windows 10,
no error. The database is also correct.
But the LUMA theme home page is not showing.
I still have this page :
or that (base-url = http: //127.0.0.1/magento2/) :
All link of this page shows 404
I don't understand why, I made a composer update, a clear cache etc ...
Nothing, always the same.
If someone has an idea.
Thank you in advance
Can you upload the screenshot here as the link you have shared its not showcasing the screenshot I think its removed so.
Or post the error which showcasing on the screen, so its help us to troubleshoot the issue.
As you are installing Magento 2.3.7, so you need to point out your pub directory as a root directory of the Magento in your apache or nginx server.
Refer this link for the same - https://devdocs.magento.com/guides/v2.4/install-gde/tutorials/change-docroot-to-pub.html
After that run the following commands from command line :
It will resolve your problem.
You have to apply changes in your root directory.
Copy the index.php and .htaccess files from the pub folder and paste them into the root directory.
Refer to the https://meetanshi.com/blog/install-magento-2-4-2-on-localhost-using-xampp/ for the required solution.
If you've already installed Magento 2.3.7 then skip the installation steps from the above blog and refer to other solutions mentioned in the post.
Thank you both, Manthan Dave and Sanjay Jethva, for your help, but I removed version 2.3.7, it was the demo version, so incomplete.
And so I am installing version 2.4.2 p1 with datas
When install elastisearch (.\Bin\elasticsearch.bat)
The installation stops at this line:
([2021-05-20T17: 28: 34,291] [INFO] [o.e.g.GatewayService] [TOUTIMOUNT] recovered  indices into cluster_state)
It can stay that way for hours and when I type http: // localhost: 9200, the information is displayed correctly.
If I close the command window, the http: // localhost: 9200 page displays "localhost refused the connection."
When I run the php bin / magento setup command: install --base-url = http: // localhost / magento2 / --db-host = localhost --db-name = magento2 --db-user = root --db -password = --admin-firstname = admin --admin-lastname = admin --email@example.com --admin-user = admin --admin-password = admin123 --language = fr_FR --currency = EUR --timezone = Europe / Paris --use-rewrites = 1 --backend-frontname = admin --search-engine = elasticsearch7 --elasticsearch-host = localhost --elasticsearch-port = 9200
I have the message:
"Could not validate a connection to Elasticsearch. No alive nodes found in your cluster"
In the database, the "core_config_data" table does have the correct data.
My virtual host :
<VirtualHost *: 80>
DocumentRoot "D: \ xamp \ htdocs \ magento2 \ pub"
SetEnv APPLICATION_ENV "development"
<Directory "D: \ xamp \ htdocs \ magento2 \ pub">
Order allow, deny
Allow from all
I followed this tutorial:
I cannot inderstand why the installation is so diffucult often folling the tuto
Thx for your help