Hello all
I am struggling with the installation of Magento 2 on a macbook pro (macOS Monterey 12.3.1).
I installed MAMP (works fine - no error in the logs when starting the server); the sql database gets populated by magento installation (for instance, I can see the baseurl in "core_config_data").
When accessing the baseurl ("http://localhost/magento2/"), nothing is shown in chrome or safari - "the requested url was not found on this server".
I have tried tons of suggested fixes, but none has worked for me.
Please let me know what more information you need to get a clearer picture what's happening on my end.
LE: Playing around with the .htaccess (in magento2 folder) i get the following:
Diving further into the directories:
Let mw know what else shall I try.
Thanks!
It sounds like there might be an issue with your Magento installation or server configuration. Let's go through some steps to troubleshoot and resolve the issue:
Check Web Server Configuration:
Check File Permissions:
Check .htaccess file:
Clear Cache:
Check Logs:
Check Rewrite Module:
Update Base URLs:
SELECT * FROM core_config_data WHERE path LIKE '%base_url%';
Verify Magento Installation:
Check PHP Version:
Check MAMP Configuration:
Browser Console:
Check Apache Error Log:
By going through these steps, you should be able to identify and resolve the issue causing Magento not to display the sample site on localhost. If the problem persists, please provide any relevant error messages or log entries for further assistance.
Tried all the steps mention but still not working it is looks like admin panel is keeps loading for a while - it only showing the loadings
here is my mac book pro nginx configuration file
server { listen 80; server_name dev.local.co.nz; root /usr/local/var/www/local/pub; index index.php index.html; location / { try_files $uri $uri/ /index.php?$args; autoindex on; } # Handle requests to media files location /media/ { try_files $uri $uri/ =404; } # Handle requests to the pub directory location /pub/ { try_files $uri $uri/ =404; } location /static/ { if (!-f $request_filename) { rewrite ^/static/(version\d*/)?(.*)$ /static.php?resource=$2 last; } } location ~ \.php$ { include fastcgi_params; fastcgi_pass localhost:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } location ~ /\.ht { deny all; } }
please let me know what need to be done
permission and .ht file are good