Before switching to Mac OSX Lion 10.7 & MAMP 2.0.2, I was using Mac OSX Snow Leopard 10.6.8 with MAMP 1.9.5
After Upgrading to Mac OSX Lion 10.7 & MAMP 2.0.1 or 2.0.2 Suddenly everything went wrong… Apache Server doesn’t start…
For almost last one month I was unable to update my website theme offline…
But when I check folder called ‘log’ inside MAMP’s folder under applications (/Applications/MAMP/logs)
I open up the the ‘apache_error.log’ Apache Log file & there was the reason on my iMac why MAMP’s Apache server was not running….
Error: [Date] [alert] (EAI 8)nodename nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of “000-000-000-000.static.broadbandcompanyname”
So, Error was related to ‘IPv4’Then I created new ‘Location’ inside ‘Network’ tab & made all services like Ethernet, FireWire, WiFi Inactive & BOOM Apache Server started
(Make sure you have killed all services of MySQL through Terminal or Activity Monitor before restarting Apache Server or just reboot your system)
So Problem Solved…
Here is Differant take on it:
Solution 02:
Open the httpd.conf file with a text editor (/Applications/MAMP/conf/apache/httpd.conf)
Search the following line:
LoadModule unique_id_module modules/mod_unique_id.so
& Change it to:
#LoadModule unique_id_module modules/mod_unique_id.so
i.e. Add ‘#’ before that line
So, Your Apache Server will start to run again normally…
Great! Thanks for sharing, it working fine! I just have an exactly same problem after upgraded to 10.7
I used Solution 02 and it worked! Many thanks, it took about 10 different web searches to finally figure it out, and it was so simple.
Thanks alot. I still have 10.6.8 but solution 2 worked pretty well. It seems it is not a “Lion”-problem ;)
This worked for me! Awesome! The weirdest thing was my MAMP setup was working flawlessly until I restarted my machine day. Thank you for figuring this out. I’m on a MAC OS X with Lion 10.7.3, running MAMP 2.0.3.
Easier way for method two is to disable the unique_id_module in the main Mamp window. Using Mamp Pro so not sure if Mamp users have the same window:
Open the main MAMP window then:
Server tab > Apache tab
In the “Apache Modules” section, just un-check unique_id_module (just over half way down the list)
Stop and start services and you’re good to go!
im running OS 10.7.3 with MAMP 1.7.2 and option 2 was already done when i checked it and it’s still not working. Are there any other solutions? I couldn’t really follow option one.
“Then I created new ‘Location’ inside ‘Network’ tab….” where do i find the network tab?
Thanks for the help.
I feel like IM SO CLOSE….ha
Hi Ross, Please Update your MAMP first then it should work…
Thanks so much!… I tried so many things. This was the best solution for me. I used the Apache Port: 80 and MySQL: 3306. And changed my file (apache/httpd.conf) to what you said, but I also had to force quit all my mysqld processes, and reboot a few times.
I found the solution by accident and all the others i found didn’t work for me but i thought id share it as i was pulling my hair out trying to get it working again.
I had changed the apache directory to my own drive.
1. Stop servers
2. Open preferences and change the apache directory back to applications/mamp/htdocs
3. Hit ok and start servers. Should work at this stage.
4. If you want to use your own directory, stop servers and change it back.
5. Start Servers.
If you didn’t have your own directory i would try it and change it to something else anyway to see if it works.
I know there are many problems out there but none of them worked for me.
Hope it helps.
hi there having trouble myself and just starting out with mamp – thanks for the pointers.
In the end I just deleted this line from httpd.conf
#LoadModule unique_id_module modules/mod_unique_id.so ( DELETED)
Servers started normally OS 10.7.4
Thanks so much; solution 2 solved the problem for me perfectly (MacPorts installation of apache on 10.8.2).
Thanks! Solution number 2 worked for me!
Thank you so much. This solution worked a treat. Cheers!
The first fix worked. The second one is not good because it removes functionality
Thanks Paul!!
The new 10.10 Yosemite update affects Apache again :(.
Update your MAMP installation, it should work…!!!
Thanks for sharing your thoughts on mandar. Regards
2nd Solution works! Thanks :)