/ etc / hosts permission file Mamp Pro

I run MAMP and it tells me that it cannot write the / etc / hosts file. I assume this is a resolution issue, but not quite sure. This is mistake:

The file /etc/hosts couldn't be written 

Any thoughts?

+4
source share
11 answers

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

 127.0.0.1 (null) 
+3
source

On your mac, go to / etc / hosts via the go to folder (or cmd-shift-g) command. You will probably find that your hosts file is locked. Make the information (cmd-i) in the file and uncheck the "locked" checkbox. Also check if you have write or read-only permissions in the Sharing and Permissions section. This is what I did, and now my MAMP Pro is working 100%

+2
source

I used Arend's solution and commented out the line 127.0.0.1 in my host file using Terminal. When you open the terminal type sudo nano / private / etc / hosts and you will be asked to enter your password. Use the cursor to go to the line with 127.0.0.1 and comment on it by adding # earlier. Then press Control + X and answer Y, and MAMP is working fine, as usual.

+1
source

I have the same problem with MAMP Pro 2.0.5. It seems that MAMP Pro will not work if you edit the etc / hosts file (e.g. add extra text ...)

0
source

Your hunch is that the permission issue seems reasonable. To explore this, you can try the following:

  • What account does MAMP work in?
  • If you are logged into this account, you can edit / etc / hosts
  • Should the account be in a specific group to access / etc / hosts

Keep in mind that allowing an application to modify / etc / hosts is a security risk, therefore it is primarily protected by strong rights.

The quick RTFM in the MAMP documentation http://documentation.mamp.info/en/mamp-pro/hosts/general shows that there is a checkbox (Local name resolution) to control if MAMP is writing a hosts file. My suggestion was that you uncheck this box and then manually edit the hosts file with the appropriate privileged account to add the names you want to use.

0
source

I have this exact problem with 2.0.5 ... I was given the message Can't write to /etc/hosts , under which another error message appears that says something like the line "IDN authentication for ACE failed with name node. " This after many hours is completely enraging.

I deleted MAMP and MAMP Pro several times, which does not solve the problem. /etc/hosts easy to write with sudo .

I also tried using XAMPP to get around the problem, but I am not very qualified as a server administrator and cannot configure vhosts correctly.

I am going to pull my teeth and reinstall os x. I turn to Stackoverflow as the MAMP forum was almost useless


I got around the problems that I had with MAMP Pro 2.0.5 by resorting to an unpaid version of MAMP and manually creating virtual hosts at ---> http://sawmac.com/mamp/virtual/

0
source

for everyone who has this problem. My fix was to uninstall mamp pro and the standard version using my uninstall applications located in their own folders in / Applications. I have an era about two folders that cannot be erased. I don’t remember which of them, but if you have the same problem as mine, you will receive a folder name prompt. Folders were located in:

~ / Library / Preferences
~ / Library / Application Support

I uninstalled them manually and restarted the uninstall application. I also deleted the following two files from the ~ / Library / Preferences folder:

de.appsolute.MAMP.plist de.appsolute.mamppro.plist.lockfile

Rebooted and installed Mamp Pro.

0
source

I am not sure if this will help with your problems, but I just reinstalled mamp pro, so I again had a problem that I fixed earlier.

Open Mamp Pro> Hosts> In the center there will be a field called "Disk Location", which will say something like "/ Applications / MAMP / htdocs", in which it has a button that says "Permissions". Click on this, in the area called "Permissions" and have a bunch of flags, you just check the "W" in the directory bar and click "Install." Voila.

0
source

I had this problem under v3.5 and solved it by unchecking the "blocked" checkbox, checking "Sharing and Permissions" and finally commenting on this line:

 # 127.0.0.1 localhost 
0
source

I understand that this is a very old question. However, I recently encountered exactly this problem when trying to use MAMP Pro with El Capitan.

I also got the same "The / etc / hosts file error was not written." However, none of the above solutions worked (after some research) I found that the problem was caused by System Integrity Protection (SIP), which was added by El Capitan. - In order for MAMP to update the hosts file, this must be disabled.

  • Click the Apple menu.

  • Choose Restart ...

  • Hold the -R command to boot into the recovery system.

  • Select the Utilities menu and select Terminal.

  • Type csrutil disable and press return.

  • Close the terminal application.

  • Select the Apple menu and select Restart.

If you decide later, you want to re-enable SIP (and I hope you do), repeat these steps, changing csrutil disable to csrutil enable instead. I would personally enable it, since SIPs have been added for your protection.

The above steps were cut and pasted from the following article:

http://www.imore.com/el-capitan-system-integrity-protection-helps-keep-malware-away

Note the warning about disabling this protection. This is the reason for some reason. I personally go offline, then turn off SIP, make changes, then turn it back on, go back online.

0
source

All Articles