cancel
Showing results for 
Search instead for 
Did you mean: 

installed magento2 open source on Mac, no access to admin panel!

installed magento2 open source on Mac, no access to admin panel!

I have installed Magento2 on my mac mini and got the prompt that shows installation was successful, used these commands for installation: 

bin/magento setup:install \
--base-url=http://localhost/magento 
--db-host=127.0.0.1:8889 
--db-name=magento 
--db-user=root 
--db-password=root 
--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 problem is that i do not have access to the admin panel page/frontpage and get this message: 

this site can’t be reached

localhost refused to connect.

Try:

ERR_CONNECTION_REFUSED
 
I tried to check it out if there is any issue with my computer configuration and installed it on another Mac, but precisely same result!
anyone who knows how to find a solution?!

 

3 REPLIES 3

Re: installed magento 2 open source on Mac, no access to admin panel!

Hello @askariansm1315 

 

You need to make the following changes to the database (core_config table) and clear the cache:

pasted_image.png

 

If you found the previous suggestion useful, please show your appreciation by clicking the "Kudos" button and considering it as the accepted solution. Thank you!

Re: installed magento 2 open source on Mac, no access to admin panel!

thank you for the reply, but it does not work with that solution!

Re: installed magento2 open source on Mac, no access to admin panel!

  1. Check if web server (Apache/Nginx), PHP, and MySQL are running.
  2. Verify virtual host config points to Magento directory.
  3. Ensure correct base URLs in core_config_data table.
  4. Set proper file and folder permissions using provided commands.
  5. Enable mod_rewrite for Apache or configure rewrite rules for Nginx.
  6. Add localhost entry in hosts file (pointing to 127.0.0.1).
  7. Check firewall for port blocking (e.g., port 80).
  8. Clear browser cache or use incognito/private window.
  9. Review logs for errors (web server, Magento, system).