toutpt toutpt - 11 months ago 82
Apache Configuration Question

How to remove autostart of apache on macosx

I'm on a macosx lion. A service is up and running on localhost:8080.

This service is an apache + php packaged by entreprisedb.

How could I remove the autostart ?


1) The autostart is usually not in the User-Autostart-Items, but you should check them anyway:

Open the System-Preferences > Users > Select your user > Start-Objects

Check if there is something started you want to deactive and do so if.

2) Normally the start of apache is handled by the launchd-service: You can either change this manually, or with the help of a old little tool named "Lingon". To do it manually, you need to find the launchd-folders:




There you'll find .plist-files, that define when and what to start. To remove a object from auto-start use launchctl on the terminal to remove it from the actual launchd and then simply delete the file.

user$ launchctl unload *filename.plist*

Make sure you do not delete the wrong files! This may lead to a fatal situation on your machine. Btw: The .plist-Files can be read with BBEdit, TextWrangler or the PropertyList Editor from the Apple Developer-Tools.