Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/etc/hosts file permission Mamp Pro

Tags:

mamp

I'm running MAMP and it's telling me that it can't write to the /etc/hosts file. I'm guessing it's a permission issue but not totally sure. This is the error:

The file /etc/hosts couldn't be written

Any thoughts?

like image 533
Marc Avatar asked May 01 '11 19:05

Marc


2 Answers

Go to your hosts file (/etc/hosts) and delete this line

127.0.0.1 (null)
like image 150
Arend Avatar answered Sep 21 '22 03:09

Arend


On you mac, via the go to folder command (or cmd-shift-g) go to /etc/hosts. You will likely find that your hosts file is locked. Do a get info (cmd-i) on the file and uncheck 'locked'. Also check to see if you have write or read-only permissions under "Sharing and permissions". This is what I did and now my MAMP Pro works 100%

like image 24
Distantclarity Avatar answered Sep 21 '22 03:09

Distantclarity