Sign up ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

How to install a copy of Apache into a local custom directory via Terminal (to ~/Desktop/ for example), so it can live without conflicts with another global version of Apache and I cant start and stop it from there?

share|improve this question

1 Answer 1

up vote 1 down vote accepted


Consider using homebrew to manage a private, isolated, installation of Apache httpd on your Mac.

To install brew and Apache httpd on your Mac, follow the steps on homebrew; the two main steps are:

ruby -e "$(curl -fsSL"

This will install the brew command line tool.

Next use jabberwik's tap to install httpd:

brew tap jabberwik/homebrew-httpd
brew install httpd24


An alternative approach is to use a pre-packaged application, such as MAMP. Running MAMP will immediately provide Apache httpd, PHP and MySQL preconfigured and ready to use.

share|improve this answer
+1 for MAMP, absolutely love it and use it all the time. – Dave Nelson Jan 3 '14 at 21:00
ok, thanks, i'll give it a try. – Dima Knivets Jan 4 '14 at 18:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.