7

I have been using MAMP for a few years now, I just updated to macOS Catalina, it seems that macOS Catalina is blocking permissions to the Documents folder among a few others (such as Downloads and Desktop).

I have already checked the permissions on these files with terminal and that doesn't seem to be the issue.

Additionally I have

The server gives me this error:

Forbidden

You don't have permission to access /Users/xxx/Downloads/index.html on this server.

The Apache log gives me this error:

[Wed Oct 09 12:31:30 2019] [error] [client ::1] (1)Operation not permitted: file permissions deny server access: /Users/xxx/Downloads/index.html, referer: http://localhost/Users/xxx/

It seems to be an issue with the way macOS is restricting permissions to certain directories. In the settings panel under Security and Privacy there are additional settings for file access, I have granted MAMP those permissions, in addition I have also went inside the MAMP folder and granted Apache's httpd the same permissions, still no luck.

Does anyone have a work around? This is causing me such a headache in development.

  • When I start MAMP it asks for Admin password and then runs perfectly. Are you using new MAMP? – Volatil3 Oct 10 at 11:12
  • Yeah, it's not that. As Johan van Dam posted below, it seems to only be a bug on port 80. Switching ports seems to be the best fix for this problem currently. – Tony Oct 10 at 19:15
3

I have the same issues. Updated MAMP to the latest build (5.5). Also switched the ports back to MAMP default ports (8888). That worked for me. Also checked if some diffrent server was running on port 80 lsof -nP -i4TCP:80 | grep LISTEN but nothing seem to be using port 80. Could it be Catalina has a new security setting for this?

5

Catalina has more restrictions on system folders which we can apply an exception:

  1. Open System Preferences -> Security and Privacy -> Privacy tab -> Full Disk Access -> Press 'Unlock to make changes' padlock

  2. Open Finder Window -> "Go" menu -> "Go to folder" -> type "/usr/sbin/"

  3. Drag the file "httpd" to the list inside the Full Disk Access settings.

  4. Restart Mamp servers

enter image description here

3

Also had Apache not starting after upgrade to Catalina. I had my websites originally located in subfolders of the /Users/***/Sites/ folder, and according to this thread, made a new folder /Users/***/Repos and moved all websites there and updated MAMP Pro doc roots for all hosts. That didn't allow Apache to start.

After that, I found this info:

Check your Template folder, located in /Users/[username]/Library/Application Support/appsolute/MAMP PRO/template/httpd.conf.temp. Rename this file to httpd.conf.temp.bak and try to restart your Apache server.

on this page https://appsolute.zendesk.com/hc/en-us/articles/215197286-My-Apache-Server-will-not-start-

and after doing that, Apache in Mamp Pro was able to start on Catalina.

  • There's nothing in that folder for me – Tony Oct 11 at 19:01
2

I have the same issue after update but didn't find any solution yet. For now I moved all my projects into a new folder in root. This one worked for me so far.

2

Several applications (GIMP for example) are not working also (they can't access "special" folders like: ~/Desktop, ~/Documents and ~/Downloads, but other locations seem to work OK). I believe this is a "complementary feature" bestowed by the newly-released Catalina. Update Different.

1

Same issue here.

Solution: Move your folders into another path (example: Home), don't use Documents or Download or other system folders.

enjoy

0

Got this problem too. Same as @ecraciun I have moved my project into /Users/MyUser/Project and now it's work!

You must log in to answer this question.

protected by Community Oct 21 at 19:00

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .