Reputation: 3556
I upgraded from Mamp-PRO 5 to 6 and now all the websites are red.
In the «document root» field, it says «restricted folder» and when I try to add a new host, I can't select a folder - they're all greyed out.
My files are located in /myUser/Library/Webserver/Documents/…
I gave apachectl, httpd and Mamp-Pro full disk access in the system preferences.
Any idea if I can fix this without moving the whole folder to a different location?
The exisiting websites are working, though (e.g. I can start Apache and the local websites are responding).
(running MacOS Catalina)
Upvotes: 1
Views: 4604
Reputation: 857
It is possible to use the same document root with multiple hostnames. This can be done via the "Aliases" option in the "General" section.
This answer comes a little late and is not the answer to the original question, but maybe this will help others to work around the limitation of MAMP PRO 6.
Unfortunately, I didn't get a tip in the right direction from MAMP PRO support or via a Google search.
Upvotes: 0
Reputation: 26
It's possible that changing the name of htdocs to localhost will do the trick. However, here are the steps I took to correct the problem:
Of note, MAMP automatically changed the name of htdocs to localhost. This is the basis for my assertion at the beginning of this post.
Upvotes: 1
Reputation: 31
I am having the same problem on Mojave, I filed a bug report to the developer and will respond if I receive something.
My files are located in /Applications/MAMP/htdocs and I cannot chose any folder within that folder. Launching the (red marked) existing hosts works, interestingly. Just not editing nor creating new ones.
Upvotes: 1