#author("2017-03-08T21:02:14+09:00","default:wikiwriter","wikiwriter")
#author("2017-03-08T22:30:07+09:00","default:wikiwriter","wikiwriter")
&tag(Homebrew/httpd24);
*目次 [#mb7097ff]
#contents
*関連ページ [#w9b29995]
-[[Homebrew]]
-[[../apache]]

*参考情報 [#y0a45c7e]

*基本 [#bce109dd]
-PHP5.3/5.4などもhttpd24に依存しているので、先にhttpd24をインストールしておく(httpd22はもはや使えない?)。


*インストール [#da07cb5d]
-以下のコマンドで実行
 brew tap homebrew/apache
 brew install httpd24 --with-privileged-ports
 sudo brew services start homebrew/apache/httpd24
-httpd24はdaemonユーザー権限で実行している。


*設定 [#w7cab085]

**ユーザーディレクトリを有効化 [#pd8d0ccf]
-httpd.confを編集
#pre{{
LoadModule userdir_module libexec/mod_userdir.so
Include /usr/local/etc/apache2/2.4/extra/httpd-userdir.conf
}}
-httpd-userdir.confを編集。
#pre{{
UserDir Sites

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory "/Users/*/Sites">
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    Require method GET POST OPTIONS
</Directory>
}}



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS