I installed magento with the composer and followed the requisites. I using mac and i used brew to install mysql , php and apache in the end when i did this:
bin/magento setup:install \ --base-url=http://localhost/magento-now \ --db-host=localhost \ --db-name=magento4 \ --db-user=root \ --db-password=my password \ --admin-firstname=admin \ --admin-lastname=admin \ --admin-email=admin@admin.com \ --admin-user=admin \ --admin-password=admin123 \ --language=en_US \ --currency=USD \ --timezone=America/Chicago \ --use-rewrites=1
the message was sucessfull :
[SUCCESS]: Magento installation complete.
[SUCCESS]: Magento Admin URI: /admin_1fs0k4
Nothing to import.
but when i go to browser and type localhost/magento-now it gives me 404
Not Found
The requested URL was not found on this server.
This is my log file from the var/log folder
Did you configure your domain name in the host file?
like in the file from the apache where was User _www and group _www? if you are talking about that i didnt changed that i just changed the Listen from 8080 to 80 because when i did that change i could restart httpd and it was stoped in the brew services list.
I dont now if it helps but i have some new logs to show from the var/log folder
setup:install --base-url=http://127.0.0.1/magento421/ \
--db-host=localhost --db-name=magento421 --db-user=root --db-password=89123456 \
--admin-firstname=magento --admin-lastname=User --admin-email=user@example.com \
--admin-user=admin --admin-password=admin123 --language=en_US \
--currency=USD --timezone=America/Chicago --use-rewrites=1 \
--search-engine=elasticsearch7 --elasticsearch-host=localhost \
--elasticsearch-port=9200
thats that way i made it and in the url i put localhost/magento421 or 127.0.0.1/magento421 and its always 404 error.
I tried using Mamp but when i go to the setup window the orange button to accept or cotinue doesnt appear so i cant do the setup
Please try Below steps
try and let me know if you face any issue.
Check the documentation install Magento
Hi,
The reason that you may run into a 404 not found error after a fresh install of Magento 2.4. 2 is due to a change starting from Magento 2.4. 2, which requires you to set the webroot to /pub/ for better security.
Thanks and Best Regards: