How do I stop Apache Server On OSX 10.8.4

Hi,

I'm actually trying to make ports 80 available for the localhost. I need to do so because most Web server software MAMP, AMPP, XAMPP, etc use Ports 80 as default. Normally I would just edit the Apache 2.conf file to use a different port on the server software that I am installing after it is up & running. I have had success with that method in the past, but I seem to be losing the battle this time. I thought it might be easier just to turn off the default Apache on OSX 10.8.4.

On it's face that might seem like an easy task, but everything I have tried, including Command Line, [apachectl-k stop] & [ sudo apacheclt stop] but it seems to give me less than satisfactory results.

Mac mini, OS X Mountain Lion (10.8.4)

Posted on Sep 12, 2013 9:20 AM

Reply
13 replies

Sep 12, 2013 11:24 AM in response to brucefromtn

There should be nothing running on port 80 unless you installed a server that uses port 80. As I said, there is no default apache running. The only way you could have a web server running on port 80 is if you installed one. If you have been experimenting with several LAMP bundles such as MAMP and XAMPP then I suspect that one of those is running apache. you will have to disable, uninstall, or somehow otherwise turn off apache in all these apps. You can only run one web server on a port at a time.

Sep 12, 2013 5:16 PM in response to BobTheFisherman

Hi Bob although I agree that nothing is running on port 80 I believe that this is because apache defaults to localhost prematurely because of the reason below.


"While you are in /etc/apache2, double-check to make sure you have a user config file. It should exist at the path: /etc/apache2/users/<your short user name>.conf. That file may not be created in Lion and if you upgrade to Mountain Lion, you still won't have it. It does appear to be created when you create a new user in Mountain Lion. If that file doesn't exist, you will need to create it with" and it goes on to explain how to do so. After that user conf file is created. I think that localhost then become a free agent again.

If you read my first post I'm more concerned with making localhost available for a new server stack than building my developement space with xcode at the moment.

Thank you for your input.

Bruce

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I stop Apache Server On OSX 10.8.4

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