---
type: collection
section: snippets
generated_at: 2026-03-16T13:31:12+01:00
total_entries: 1
tag_filter: macOS
---

# Snippets

## Remove Duplicate Homebrew Apache launchd Service

---
type: snippet
id: qbidnuc15pn3jbjs
title: >
  Remove Duplicate Homebrew Apache launchd
  Service
url: >
  https://www.jakubpelak.com/snippets/duplicate-homebrew-apache-service
section: snippets
tags:
  - Homebrew
  - macOS
  - Apache
  - launchd
  - CLI
published_at: 2026-02-19
---

If `brew services start httpd` succeeds but `brew services list` shows an error with `root` as the user, you likely have a leftover system LaunchDaemon from a previous `sudo brew services` invocation alongside the user LaunchAgent. Remove the system daemon to resolve the conflict.

```bash
brew services stop httpd || true
sudo brew services stop httpd || true
sudo launchctl bootout system /Library/LaunchDaemons/homebrew.mxcl.httpd.plist 2>/dev/null || true
sudo rm -f /Library/LaunchDaemons/homebrew.mxcl.httpd.plist
brew services cleanup
brew services start httpd
```

After this, `brew services list` should show httpd as started under your user.

