I'm very confusing what's the matter? I use :
xampp3.3
php 8.2
magento 2.4.6
elasticsearch 8.8.1
I did all the others said in forums and other questions in stackoverflow or magento stackexchange. but my problem didn't resolve.
what I did:
INSERT INTO core_config_data (path, value) VALUES ('dev/static/sign',0) ON DUPLICATE KEY UPDATE value = 0;
and set 'web/seo/use_rewrites' to 0 due to an answer in forums.
takeown /f . /r
this commands one by one:
icacls .\pub /grant Everyone:F /t
icacls .\var /grant Everyone:F /t
icacls .\app\etc /grant Everyone:F /t
<Directory "C:\xampp\htdocs\magento2"> Options Indexes SymLinksifOwnerMatch MultiViews AllowOverride All Require all granted
and
timeout 300
in di.xml, change developerMaterialization value from symLink to Copy.
run this commands one by one
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f php bin/magento indexer:reindex php bin/magento cache:flush
delete cache folder under var and even clean cashe by:
php bin\magento cache:clean php bin\magento cache:flush
I use localhost, and also use 127.0.0.1 in store url and admin url. magento2 is loaded but without any css. and the admin panel not loaded at all (404 error). I test on developer and also production mode.
my installation command for magento 2.4.6 is :
php bin/magento setup:install --base-url=http://localhost/magento2/ --db-host=localhost --db-name=magento --db-user=root --db-password=root --admin-firstname=E --admin-lastname=R --admin-email=some@gmail.com --admin-user=admin --admin-password=admin123 --language=en_US --use-rewrites=1 --search-engine=elasticsearch8 --use-sample-data --cleanup-database
I spent much time but without any success.
There are many reason for this, first at all, you need to open the 404 link in browser to see the actual issue, sometime It's the issue with permission (need to check the Apache/Nginx log)
Second, reason likely to happen because files did not generate properly, for this case, you need to enable the developer
mode
Then run command bin/magento setup:upgrade
Hope this work for you.