cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot access Web Setup Wizard while on localhost

SOLVED

Cannot access Web Setup Wizard while on localhost

Hi guys.

 

I just set up a local server using MAMP on MacOS Mojave, and installed magento in htdocs. 

 

I can access the admin panel, but when i click on the web setup wizard, it opens an empty white page. I downloaded the Magento CE 2.3.2 package from the magento site and installed it using a web interface. didn't do any other configurations except to change the PHP memory limits to 4096G in .htacess and .usr.ini (as well as in the MAMP PHP config files).

 

Has anyone encountered this problem before?

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Cannot access Web Setup Wizard while on localhost

Hi @ben_zhang  

Try the following command to setup proper permission to magento directory. 

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento

After it run the following magento commands in the sequence. 

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento indexer:reindex
chmod -R 0777 var/ pub/ generated/


I hope it will help you!

View solution in original post

Re: Cannot access Web Setup Wizard while on localhost

Try once:

sudo chmod u+x bin/magento

If you are able to run further commands then it is fine as well.

php bin/magento

View solution in original post

5 REPLIES 5

Re: Cannot access Web Setup Wizard while on localhost

Hi @ben_zhang  

Try the following command to setup proper permission to magento directory. 

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento

After it run the following magento commands in the sequence. 

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento indexer:reindex
chmod -R 0777 var/ pub/ generated/


I hope it will help you!

Re: Cannot access Web Setup Wizard while on localhost

thanks for your reply!

 

after I ran the first command, it changed a bunch of file permissions but returned 

 

chmod: bin/magento: no such file or directory.

 

it's weird because I can see the file in Finder. 

Re: Cannot access Web Setup Wizard while on localhost

Try once:

sudo chmod u+x bin/magento

If you are able to run further commands then it is fine as well.

php bin/magento

Re: Cannot access Web Setup Wizard while on localhost

thanks! worked perfectly. 

 

but for other's sake, I do wanna point out that it involves changing the PHP memory limit of the loaded PHP configuration file. don't touch the .htaccess file! the loaded configuration file won't be in the directory.

 

and for those who are really new... go to application > MAMP > <your magento root directory> and right click on the folder. at the bottom will be a open terminal option. key in your commands from there. i was ignorant once too

Re: Cannot access Web Setup Wizard while on localhost

I didn’t get your question properly.

Btw for magento memory limit issue you can add following parameter in command.

php -d memory_limit=-1 bin/magento


Or you can add following line in index.php of magento root folder.

ini_set("memory_limit","-1");