Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have my mac setup to use php / mysql / apache via macports. Recently it has gone a bit pear shaped: it seems that the local mac versions of apache and mysql are running blocking the macports services:

(48)Address already in use: make_sock: could not bind to address [::]:80
(48)Address already in use: make_sock: could not bind to address [::]:443

Web sharing in System preferences is off - How can I properly disable it? I tried turning it on an off again in System Preferences but it would not changed from off to on.

Also if I kill the process it starts running again.

share|improve this question

closed as off topic by Sven, DanBig, Ward, HopelessN00b, Ladadadada Sep 26 '12 at 6:12

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Where then should I ask this question? I didn't think it was appropriate for stackoverflow and it does relate to running an apache server. – benedict_w Sep 26 '12 at 11:02
up vote 1 down vote accepted

I don't think that's the builtin Mac versions, or if it is they're being activated in an unusual way. From the fact that it restarts when killed, I'd infer that it's being started and monitored by launchd, but you need to figure out which launchd item is managing it, and unload that item. To do this, run sudo launchctl list, search for the PID of the running process, then find the launchd item (in /Library/LaunchDaemons or /System/Library/LaunchDaemons) with the matching label, and unload it with `sudo launchctl unload -w /path/to/item'. See this previous answer for more details.

share|improve this answer
That's brilliant thank you! I now have my macports version of apache running again. Now the problem is that I still have the mac version of mysql running - in phpmyadmin I see only old tables I had in there. Nothing that was on the macports version. I can't find the launcher for this in either of the directories mentioned - launch item that seems to start the process is 0x109a2a500.anonymous.mysqld – benedict_w Sep 26 '12 at 11:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.