MAMP Pro under OS X Mavericks

If you’re a developer and you got access to use Mac OS X 10.9 Mavericks earlier this week, you’ll notice that it’s actually mostly a hassle free experience, apart from changes to the code signing and authorisation model that mean non-signed applications can no longer elevate permissions to root level.

Now, this shouldn’t matter to most people – but if you use MAMP Pro, you’ll find this isn’t signed at all, and means it’s unable to get access to write to the important system files. You’ll get an error about not being able to write to /etc/hosts.

I’m sure the next version of MAMP will fix this, but for now, you can self sign the app to give it permission to modify system preferences.

You just need to open keychain access, click on it’s menu bar item “Keychain Access”, then “Certificate Assistant”, and “Create a Certificate”. For Name, enter your name, Identify Type should be kept as Self Signed Root, and Certificate Type should be code signing. You can pretty much click continue on everything else until your certificate.

Finally, open terminal, and run:

codesign -s “Your Name” /Applications/MAMP\ Pro/MAMP\ Pro.app

That’ll sign the application as you and let you execute it.

Obviously, it goes without saying you’re telling your mac you trust any app you sign – so only do this if you’re confident MAMP Pro (or any other app that has issues on Mavericks with this error) is trustworthy.

Update:

If you still have issues, that probably means the signing didn’t take properly, you can run: codesign -v /Applications/MAMP\ PRO/MAMP\ PRO.app -v

Once signed, that should tell you that MAMP is “valid on disk” and it “satisfies its Designated Requirement” – anything else and the signing didn’t work properly and you should try again!

  • Majid Sadeghi Garmaroudi

    Thanks Liam, I tried what you said but didn’t work! My MAMP Pro doesn’t work! I cannot start apache yet! Any suggestion?

  • Majid Sadeghi Garmaroudi

    Aaaaa, Found the issue! I used my default name but it seems that name in my case “majid” makes conflicts! I made a new one with a different name and it worked perfectly! Thanks for the help! Cheers.

    • lgladdy

      Majid Sadeghi GarmaroudiGlad you sorted it!
      If anyone else has issues, you can run: codesign -v /Applications/MAMP PRO/MAMP PRO.app -v
      Once signed, that should tell you that MAMP is “valid on disk” and it “satisfies its Designated Requirement” – anything else and the signing didn’t work properly!

  • RobGloess

    Thanks.. saved a headache!

  • Thank You!  This was driving me crazy and I thought it was bad permissions or ownership of a config file somewhere post update.  I complete forgot about the code sign change….  Wish I’d found this before banging my head against the wall for 2 hours, including reinstalling and wiping out prefs, ACLs and running chmod/chown all over the place.
    Working great now.

  • TheRyanSnowden

    Make sure users select “System” on the left before finding “Create Certificate…”

    • BobRoman

      TheRyanSnowden thanks! that’s what i needed.

  • bar1024

    Thanks Liam! This solved my issue. After installing OS X 10.9 Mavericks, I was getting the following error message when trying to launch MAMP Pro 2.1.4: “The MySQL configuration file my.cnf couldn’t be written.” I followed your instructions on how to self sign the app and it worked perfectly. Thanks for saving me some a few troubleshooting hours!

  • KikiNazari

    i get,  “Kiki: no identity found ?

    • korneliuz

      KikiNazari No quotes. Twas my problem as well.

  • scbailey1

    THANK YOU!!!!! This was driving me NUTS!

  • RichHill

    Thank you for this fix.

  • knot_now

    Thank you ! Anyone know how to bypass “The built in Apache is active which can cause a port conflict with at least one of your virtual hosts.” I tried a sudo apachectl stop but it didn’t work !

    • lgladdy

      knot_now Probably just need to disable “web sharing” in system preferences > sharing

      • knot_now

        lgladdy knot_now No “web sharing” anymore in system preferences > sharing on Mavericks DP2.

      • adonnan

        lgladdy knot_now Disabling internet sharing in System Preferences got MAMP up and working for me.

  • SebastianMawiraBuys

    Thanks for this!

  • jkmassel

    Dude. You are the man. Thanks!

  • minlite13

    Thanks man. You saved my ass 🙂

  • RafaelFranco

    Thanks a Lot!!!!

  • EdAtrero

    What a life saver!  I spent all morning on this one and then found your post.  Thanks dude!

  • MichaelTretyakov

    code object is not signed at all
    In architecture: x86_64

  • SilentComics

    Excellent – thanks. But I see this post if from June 16 – 2013. Not found any fixes on the MAMP site yet…

  • Nate Walton

    Got this to work (needed to remove the quotes), but I’m still getting an error starting Apache. It says “Start Apache failed” and the log says: [alert] (EAI 8)nodename nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of …

  • Callum

    I tried this solution but I think I botched it. How can I undo/clear the codesign so that I can try again?

  • I am getting the following error, any ideas?

    /Applications/MAMP PRO/MAMP PRO.app: object file format unrecognized, invalid, or unsuitable

  • LiveProductions

    what about non pro users

  • @MichaelTretyakov this is what I get as well … did you ever resolve the issue?

  • It looks like I can create the certificate okay, but when I run this:
    codesign -v /Applications/MAMP PRO/MAMP PRO.app -v
    All I get is this:
    code object is not signed at all
    In architecture: x86_64
    Not sure how best to proceed – and there doesn’t appear to be any new version of MAMP on their site. I have a support question in with MAMP and will post back here if I hear anything. Thanks.

  • Thank you this worked. I also use dropbox to sync symbolically linked folders into the MAMP directory soI ran into an issue where I was updating from an older MAMP at the same time and I tried replacing the DB folder with my old one as I had done in the past. However there are some databases in there by default. To get things working I exported out my databases and imported them into the new MAMP version.

  • palmerio

    I get the last ones successful messages at the end but when I initialize the localhost he don’t works and still loading forever.
    Any suggests?
    Thanks

  • manodere

    I did it all, with no luck. Avoided the quotations, set the proper path to my non-pro app, restart, saw the “valid on disk” response on the terminal… Please help. Just need a safe please to practice WordPress before going live, thats all…

  • This solved it for me: Stopping the default apache server https://support.servertastic.com/mamp-not-starting-after-upgrade-to-mountain-lion/

  • CEPLE

    cesars-imac:~ Cesar$ codesign -v /Applications/MAMP PRO/MAMP PRO.app -v
    /Applications/MAMP PRO/MAMP PRO.app: code object is not signed at all
    In architecture: x86_64

  • Mark Wall1

    Excellent!  Works for me.  Code Signing Tools weren’t installed so one extra (very easy) step for me.