Apple Event: May 7th at 7 am PT

Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

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

Disable Apache Yosemite Server

Hi,


Is there any way to disable Apache in Yosemite Server?


Have done this in previous version of OSX, but command doesn't run as the location has changed.


Any help would be greatly appreciated.


Thanks

Darren

OS X Yosemite (10.10.5), null

Posted on Sep 29, 2015 3:46 AM

Reply
20 replies

Oct 7, 2015 1:23 PM in response to Strontium90

I am experiencing the same issue with Server 5.0.4 & Kerio 8.5.2 .


I chose the first of your suggestions and commented out "listen 80" & "listen 443" in /Library/Server/Web/Config/Proxy/apache_serviceproxy.conf and then rebooted. twice. Yet httpd persists.


I have tried "sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist" (which has worked in the past) but now I get "No such file or directory".


Because this is a mail server, I really don't want to use the VirtualHost solution and risk any potential DNS issues. Any other ideas? Many thanks!

Oct 7, 2015 5:23 PM in response to drumogge

What appears when you use Safari on the machine and run: http://localhost and http://localhost:443


Try running this in the Terminal to determine what it running the port


ps -ax | grep httpd


Let's see what is running the service. In the result, you should see the config file that is associated with the service. For example, if you enabled web password reset, you might see this:


479 ?? 0:15.87 /usr/sbin/httpd -D FOREGROUND -f /Library/Server/Web/Config/apache2/services/auth.conf -E /var/log/apache2/services/auth_error_log


Note the configuration file is auth.conf not the service proxy.


Reid

Apple Consultants Network

Author "El Capitan Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

Author of Yosemite Server and Mavericks Server books

Disable Apache Yosemite Server

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