Thursday, April 7, 2016

Install apache2 on OSX with Homebrew

Installation
brew tap homebrew/apache
brew install httpd24

or

brew install homebrew/apache/httpd24
(if you want to use apache 2.2, then use httpd22 instead of httpd24)

It works! (default port is 8080)

info
brew info httpd24

remove
brew remove httpd22

go to configuration directory
$(brew --prefix)/etc/apache2/2.4

restart
brew services restart httpd24
(but it's not work in tmux environment. why?)

start
brew services start httpd24

stop
brew services stop httpd24

log directory
/usr/local/var/log/apache2

references



No comments:

Post a Comment