Setting up Apache on OSx Mountain Lion

A quick guide to setting up Apache in OSx Mountain Lion

I have always used XAMPP on Windows machines and it comes with an OSx version so I have usually been lazy and just used it on any OSx installs I have had to use.

Recently though I have wanted finer control over my machines and part of that is to run anything as barebones as possible, which means not having something like XAMPP in the middle.

This guide assumes you are running OSx Mountain Lion and have xCode installed, it may work on older versions of OSx and may not require xCode, but honestly I don’t have any other systems to test this on!

The guide is also only three steps step long, because with this set up Apache is already installed.

  1. Open your terminal.
  2. Type sudo apachectl start
  3. Enter in your password.

Now when you browse to http://localhost you should see an ‘It works!’ message.

To change the settings you should edit the file located at /etc/apache/httpd.conf

Recent posts View all

Web DevProductivity

Keeping on top of website updates

Learn what website updates are, what they entail, why they are important, and how we can help

Freelancing

Getting the most out of your agency

Here are some tips based on years of working with, for, and as an agency on how to get the most out of any work you do.