MacOS Catalina doesn’t allow MAMP permission to certain folders (Documents, Downloads, Desktop)

catalinamacosmamppermission

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.

Best Answer

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?