Note:
Please direct all future questions to Stackoverflow.com.
MAMP PRO customers can direct their questions to support.appsolute.de.
Hinweis:
Bitte posten Sie ab jetzt Ihre Fragen bei Stackoverflow.com.
Unseren Support für MAMP PRO erreichen Sie unter support.appsolute.de.

The file /etc/hosts couldn't be written.

Report any found bug here. We are grateful for any useful clues.

Moderator: severin

The file /etc/hosts couldn't be written.

Postby ashedryden » Wed Mar 30, 2011 3:14 pm

I see multiple people have posted about this issue, but none seem to resolve my problem.

I have just installed MAMP Pro over my old copy of MAMP.

When I start MAMP Pro I receive the error "The file /etc/hosts couldn't be written."

I checked my hosts file and there is nothing in it that says null. I have the few localhost addresses, plus some external IPs used to access servers I SSH to. Nothing is missing an alias, there are no extra lines, etc.

I tried changing the perms on the file, that didn't help.

I tried starting MAMP first, stopping the servers, and checking the hosts list, but the only thing in there is the default localhost address.

This is keeping me from using MAMP Pro at all, which I'm not exactly thrilled about :/ Would love any help you can provide.
ashedryden
 
Posts: 1
Joined: Wed Mar 30, 2011 3:08 pm

Re: The file /etc/hosts couldn't be written.

Postby herojig » Wed Jun 08, 2011 7:33 am

Same here...have not used in months, but went to fire up and that's what I get too!
herojig
 
Posts: 2
Joined: Wed Nov 25, 2009 3:57 am

Re: The file /etc/hosts couldn't be written.

Postby marketman » Thu Jun 23, 2011 8:48 pm

Just out of curiosity did you use a patcher application for your host file while installing Adobe software? I found invisible junk in my host file, after deleting that item MAMP Pro started up like a champ.
marketman
 
Posts: 1
Joined: Wed Jun 22, 2011 5:04 am

Re: The file /etc/hosts couldn't be written.

Postby herojig » Fri Jun 24, 2011 8:35 am

My problem went away by just uninstalling MAMP+PRO and reinstalling. Works like a charm now...
herojig
 
Posts: 2
Joined: Wed Nov 25, 2009 3:57 am

Re: The file /etc/hosts couldn't be written.

Postby kense » Thu Jul 21, 2011 5:27 pm

So if I have other text in the etc/hosts file then MAMP Pro won't work? Wish I'd read this board before spending my hard earned cash!
kense
 
Posts: 1
Joined: Thu Jul 21, 2011 3:06 pm

Re: The file /etc/hosts couldn't be written.

Postby izo » Mon Jul 25, 2011 8:46 am

Same issue for me .
izo
 
Posts: 2
Joined: Mon Jul 25, 2011 8:21 am

Re: The file /etc/hosts couldn't be written.

Postby stewd » Mon Oct 10, 2011 7:33 pm

marketman wrote:Just out of curiosity did you use a patcher application for your host file while installing Adobe software? I found invisible junk in my host file, after deleting that item MAMP Pro started up like a champ.


Just incase any one else is having the Issue,

You need to clear your hosts file,

Not completely, but any Adobe "Stuff" (AKA if you have patched your Adobe) Needs to be removed from the host file, As it conflicts with the Pro Version,

I can confirm the Free Version is not effected by this.


Stewart,
stewd
 
Posts: 1
Joined: Mon Oct 10, 2011 7:28 pm

Re: The file /etc/hosts couldn't be written.

Postby softandbyte » Wed Oct 19, 2011 9:05 am

i have the same problem, i changed read write rights already but problem stays
softandbyte
 
Posts: 1
Joined: Tue Oct 18, 2011 7:25 pm

Re: The file /etc/hosts couldn't be written.

Postby Mabawsi » Thu Nov 17, 2011 1:21 pm

stewd wrote:
marketman wrote:Just out of curiosity did you use a patcher application for your host file while installing Adobe software? I found invisible junk in my host file, after deleting that item MAMP Pro started up like a champ.


Just incase any one else is having the Issue,

You need to clear your hosts file,

Not completely, but any Adobe "Stuff" (AKA if you have patched your Adobe) Needs to be removed from the host file, As it conflicts with the Pro Version,

I can confirm the Free Version is not effected by this.


Stewart,





Here's a solution that will work.

Mamp keeps a backup of your hosts file called hosts.mamp.bak

1st copy ur corrupted(?) hosts file to your docs and then copy over the hosts.mamp.bak file to hosts.

if you see hosts.mamp.bak they still have the adobe nullifiers. And now MAMP PRO works too!

also mine stopped working because i did a 'mate /etc/hosts/ from the terminal which, I suspect, screwed up the permissions somehow.

Claims that it is because of that patcher utility you used for Adobe products, is bull sheet. :)
Mabawsi
 
Posts: 1
Joined: Thu Nov 17, 2011 1:13 pm

Re: The file /etc/hosts couldn't be written.

Postby gonano » Fri May 18, 2012 5:26 am

For anyone else having this problem.

My fix was to uninstall mamp pro and the standard version too by using their uninstall apps located on their own folders in /Applications/Mamp/ and /Applications/Mamp Pro/
The uninstall app gave me errors about two folders not being able to be erased or accessed. I don't remember which ones but if the problem you're having is same as mine was, you'll get a prompt of the folder names. Folders were located in:

~/Library/Preferences
~/Library/Application Support

I deleted those manually and restarted the uninstall app. 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.
gonano
 
Posts: 1
Joined: Sat Apr 12, 2008 2:48 pm


Return to Bugs

Who is online

Users browsing this forum: Bing [Bot] and 3 guests

wager-taxi