Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to disable Lion Server. For REAL!

The instructions that Apple has recently posted on disbaling Lion server is nowhere near complete. Don't be fooled. Following those instructions will NOT completely disbale all the Server services that were installed when you ran the Server app.


Through a bit of research I have tracked down ALL the services that are installed when you run the Server app and created a script you can run from Terminal to really disable all of them.


This is, of course, a use at your own risk script. It worked fine for me with no apparent ill effects but I can not gaurentee it will not cause you problems.


The script can be downloaded from here:

http://www.svrx.com/disable_LionServer.zip


Download this, double click to expand the zip.

Then open Terminal and execute the script. Probably something like:


sudo Desktop/disable_LionServer.sh

or

sudo Downloads/disable_LionServer.sh


After that restart your computer and be Lion Server free.


Let me know if you have any problems with this but again it is use at your own risk. I am not resposible for any ill effects it may have on your system.


Enjoy....

G3, G4, G5, Intel iMac, Mac Pro, MacBook, MacBook Pro, Mini, Mac OS X (10.6)

Posted on Aug 22, 2011 10:34 PM

Reply
18 replies

Aug 23, 2011 9:10 AM in response to Josh Hurd

Please note: This script will not remove any files from your computer nor will it undo any config changes that were made, such as those to Apache.


Furthermore it will not remove the Lion Server identifier from your computer either. Your computer will still think it is running Server. You have to remove that yourself if you wish. That file lives at:


/System/Library/CoreServices/ServerVersion.plist

Aug 30, 2011 1:27 AM in response to welshguru

Further to my last response,


I am having trouble with getting the new Mac Mini to appear on my local network, it has done on one occasion i accessed the mac mini once, and then tried screen sharing and it immediately stopped and from then on the mac mini is not showing up on the Network, is this something to do with the mods to the server?


thx


John

Aug 30, 2011 1:58 AM in response to welshguru

Well, as I mentioned above the script does not remove anything. That includes the Server app itself. The only purpose the Server app has is to initially install all the Server components and then to manage some of those components once they are installed. Otherwise the app has nothing to do with the underlying services.


If you have re-run the Server app after you ran this script it's possible some services have been turned back on. If you really want to disable the Server services run the script again and don't run the Server app any more. In fact go ahead and remove it.


Not sure why the ServerVersion.plist file would not be in the CoreServices directory. Had you already removed it by chance??


As for your Mini not showing up on your network, check your System Preferences -> Sharing. Make sure your network services are actually running. This script doesn't modifiy any of those services so this is unlikely to be related to this script.

Aug 30, 2011 3:04 AM in response to Josh Hurd

Hello,


Moved Server App out of Applications folder, re ran the script and then restarted. I did notice that if i go to Netwrok there is a server folder showing and within the folder there is the name of the old defunct Server, and the name of the Mac Mini. is this correct?


On Mac Mini networking issues all seems to be fine and set up correctly


Thanks


John

Feb 21, 2012 9:14 AM in response to Josh Hurd

Thanks Josh, I believed this worked for my computer.

I have saw your other topic and you posted a link to this. Hoepfully this erases everything. In software update I had the option to install Mac OS X Update Combined Version 10.7.3 Size: 1..34gb, but my Mac Mini is not the server one its normal one. So I did not want to install untill I removed the server app.

Jun 10, 2012 10:08 PM in response to Josh Hurd

First, I wanted to thank Josh for his post and script. I made the mistake of installing Lion Server on my MBP (long story, bad decision) and other than "re-install Lion from scratch", this was the only advice that offered hope.


The script ran fine and got rid of most all indications of server apps running locally. I did, however, have nightmares trying to get Spotlight to start indexing my stuff again. Symptoms showed up as an inability to search email, which is a major problem for me. Most solutions pointed to re-building the index, which I did on numerous occaisions without getting anywhere.


Finally stumbled across a thread on Ask Different where one user had issues with Spotlight on Server. Turns out Server will turn on file sharing when installed and if you disable file sharing before "uninstalling" Server it turns off indexing on the sharepoints - which includes /Users ... and all your local files.


If you run into Spotlight issues after running Josh's script, check the status of /Users by opening a Terminal window and running the command


mdutil -s /Users


If the status shows indexing disabled, turn it on and rebuild the index with the commands


sudo mdutil -i on /Users # Turns indexing back on on the /Users directory

sudo mdutil -E / # Erases the index and causes Spotlight to rebuild it


The last two commands could be added to the script directly. The first command will run without error if indexing is already on and the second will cause a Spotligh index rebuild - which takes some time, but won't harm anything.



How to disable Lion Server. For REAL!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.