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?
Solved! Go to Solution.
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!
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!
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.
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