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?
How to install Apache into a custom directory
apache
Related Question
- MacOS – Understanding install of mod_wsgi on apache terminal commands
- How to fix 403 in Mac OS X built-in Apache
- MacOS – Updating Native Mac OSX Mavericks Apache 2.2 to 2.4 – disabling old version
- MacOS – How to delete apache from OS X Yosemite
- MacOS – Start or Stop Apache without having to give a password
- MacOS apache installs on different directory with homebrew, how to start/stop
- MacOS – Changing Default Apache version on MacOS Sierra
Best Answer
homebrew
Consider using homebrew to manage a private, isolated, installation of Apache
httpd
on your Mac.To install
brew
and Apachehttpd
on your Mac, follow the steps on homebrew; the two main steps are:This will install the
brew
command line tool.Next use jabberwik's tap to install
httpd
:MAMP
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.