Swissdude
Swissdude

Reputation: 3556

Mamp-PRO 6.x on Mac Catalina can't access the folder with my websites anymore

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

Answers (3)

Jako
Jako

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

Karl Letcher
Karl Letcher

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:

  • Stopped MAMP Pro servers
  • Copied Applications/MAMP/htdocs to my Dropbox folder (I'm guessing it could go in the documents folder or anywhere else)
  • Clicked on localhost in MAMP and chose the new document root location (Dropbox/htdocs in my case)
  • Chose new document roots for all my hosts at the new location

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

michael
michael

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

Related Questions