ShineethHamza!

Q: Uninstall OS X Server completely in Yosemite

I recently run the OS X Server app on Yosemite. Now each time I shutdown or restart my mac, it asking for administrator password. I don't want to run my MacBook Pro as a server. I Run this app just to test something, now I want to reset to previous state. Now I feel that there are some daemon process running because of the server app, that slows down my laptop. Even taking long time to shutdown with spinning wheel. How to Uninstall or reset all the changes made by OS X Server app on Yosemite?

MacBook Pro (Retina, 15-inch, Mid 2014), OS X Yosemite (10.10.2)

Posted on Apr 5, 2015 12:14 PM

Close

Q: Uninstall OS X Server completely in Yosemite

  • All replies
  • Helpful answers

  • by PATRICKMELE,

    PATRICKMELE PATRICKMELE Apr 5, 2015 12:37 PM in response to ShineethHamza!
    Level 3 (857 points)
    Mac OS X
    Apr 5, 2015 12:37 PM in response to ShineethHamza!

    voteaccepted

    You can reset just the Websites service in OS X Server with the following command:

    sudo serveradmin command web:command=restoreFactorySettings 

    Make sure the Websites and Wiki services are off when you run this command.

    Uninstalling OS X Server will, by default, retain all configuration files so that reinstallation keeps all data, however you can delete the Server folder to reset all the data.

    1) If you provided DNS/DHCP, make sure all your devices are changed to point to the new DHCP server and/or DNS server. If you used OD, turn off OD on all client devices.
    2) Shut down all server services on the Mac
    3) Delete the server app
    4) Delete the folder /Library/Server
    5) Reboot and test that everything is functioning correctly.

    _

  • by Linc Davis,Solvedanswer

    Linc Davis Linc Davis Apr 5, 2015 9:02 PM in response to ShineethHamza!
    Level 10 (207,963 points)
    Applications
    Apr 5, 2015 9:02 PM in response to ShineethHamza!

    Move the Server application to the Trash. Delete the following items (some may not exist), then reboot:

    /.ServerBackups
    /var/db/.ServerSetupDone
    /Library/Preferences/com.apple.serverd.plist
    /Library/Preferences/com.apple.servermgr_accounts.plist
    /Library/Preferences/com.apple.servermgr_certs.plist
    /Library/Preferences/com.apple.servermgr_info.plist
    /Library/Preferences/com.apple.servermgrd.plist
    /Library/PrivilegedHelperTools/com.apple.serverd
    /Library/Server
  • by ShineethHamza!,

    ShineethHamza! ShineethHamza! Apr 5, 2015 9:03 PM in response to Linc Davis
    Level 1 (1 points)
    Apr 5, 2015 9:03 PM in response to Linc Davis

    Thanks Linc. It was a quick response and it's works.

  • by MarcSch,

    MarcSch MarcSch Jul 11, 2015 4:13 AM in response to Linc Davis
    Level 1 (0 points)
    Jul 11, 2015 4:13 AM in response to Linc Davis

    Thank's allot ! I know you mentioned that some files might not be there, I could only find and remove these 3 files (plus the Server.app of course):

    • /Library/Preferences/com.apple.servermgr_accounts.plist
    • /Library/Preferences/com.apple.servermgrd.plist
    • /Library/Server

    Again, many thanks for your help!!!