Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After I update to MacOs Catalina MAMP stop working

I have a folder on my Desktop named work where I keep all my php projects. I use MAMP and all projects are set to work on virtual hosts, for example, if I have a project named test I access this project on this URL http://test.dev.

Everything went ok until I updated to macOS Catalina when I started to have this error.

(1)Operation not permitted: Can't open directory for index: /Users/username/Desktop/work/php/development/projectname.

I set the permissions to the work folder and all subfolders to be read & write for my user and staff group, I tried all the terminal permission

commands: chmod 777, 755, etc.
like image 529
joebanescu Avatar asked Sep 16 '25 07:09

joebanescu


1 Answers

I had the same problem like you, and I spent many days to solve it by doing:

stop MAMP, then open terminal and type

sudo /Applications/MAMP/bin/startApache.sh -> then Enter

and then type your admin password to give apache full privileges to start apache. (this way can let MAMP read any files on your Mac, include external drives)

now you can open MAMP and see that Apache is started, then click Start on MAMP app to start MySql too.

like image 82
Bảo Nam Avatar answered Sep 19 '25 16:09

Bảo Nam