Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rachalmers

macrumors member
Original poster
Oct 21, 2012
61
5
UK
I’m trying to disable the httpd plist startup, but it’s in System and it can’t be modified even as root. How do I disable this in this case?
 

chrfr

macrumors G5
Jul 11, 2009
13,702
7,264
I’m trying to disable the httpd plist startup, but it’s in System and it can’t be modified even as root. How do I disable this in this case?
httpd doesn't run by default, so if you haven't already enabled it you don't need to do anything.
If you have enabled Apache you can disable it with this command:
Code:
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
 

rachalmers

macrumors member
Original poster
Oct 21, 2012
61
5
UK
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
Sorry, but this no longer works. I get the message.

Usage: launchctl bootout <domain-target> [service-path1, service-path2, ...] | <service-target>

<service-target> takes a form of <domain-target>/<service-id>.

Please refer to `man launchctl` for explanation of the <domain-target> specifiers.
 

rachalmers

macrumors member
Original poster
Oct 21, 2012
61
5
UK
httpd doesn't run by default, so if you haven't already enabled it you don't need to do anything.
If you have enabled Apache you can disable it with this command:
Code:
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
And I can’t change the Keep Alive key in the plist because the plist file can’t be edited.
 

bogdanw

macrumors 603
Mar 10, 2009
6,099
3,010
To start
Code:
sudo apachectl start
to stop
Code:
sudo apachectl stop
 

chrfr

macrumors G5
Jul 11, 2009
13,702
7,264
Sorry, but this no longer works. I get the message.

Usage: launchctl bootout <domain-target> [service-path1, service-path2, ...] | <service-target>

<service-target> takes a form of <domain-target>/<service-id>.

Please refer to `man launchctl` for explanation of the <domain-target> specifiers.
Are you not using macOS 12, Monterey? You're posting in the Monterey forum so this should work.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.