macOS Sierraのアップデートにより、Apacheのローカルホストがアクセス不能になりました。まあ、localhost/
にしかアクセスできません。しかし、localhost/<other-directory>/
のサブフォルダはで、です。Apache Localhost 403 macOSで禁止Sierra
修正方法?で
を保存し、それを、内容をコピーし、
ゴーへ/民間の/ etc/apache2の オープンhttpd.conf.bak上書きのhttpd.conf:
macOS Sierraのアップデートにより、Apacheのローカルホストがアクセス不能になりました。まあ、localhost/
にしかアクセスできません。しかし、localhost/<other-directory>/
のサブフォルダはで、です。Apache Localhost 403 macOSで禁止Sierra
修正方法?で
を保存し、それを、内容をコピーし、
ゴーへ/民間の/ etc/apache2の オープンhttpd.conf.bak上書きのhttpd.conf:
は、ここで私はこの問題を解決するために、その後のステップですhttpd.confに、変更
Options FollowSymLinks Multiviews
Options FollowSymLinks Multiviews Indexes
へ/ユーザー/ディレクトリをチェックして、あなたの* .confのファイルに移動し、それを確認
を保存し
DocumentRoot "/Users/username/Sites"
<Directory "/Users/username/Sites">
に
DocumentRoot "/Users/username/Sites"
<Directory "/Library/WebServer/Documents">
に変更して以下のようになります。
<Directory "/Users/username/Sites/">
Options Indexes MultiViews
AllowOverride All
# OSX 10.10/Apache 2.4
Require all granted
</Directory>
その後、sudo apachectl restartを実行してください。
これでうまくいくはずです:-)
"/private/etc/apache2/extra/httpd-userdir.conf"ファイルを確認してください。
Include /private/etc/apache2/users/*.conf
へ
変更
#Include /private/etc/apache2/users/*.conf
とApacheを再起動します。
を確認してください。http://stackoverflow.com/a/39702677/486508 – Hesham
再インストールしてください。この完全な設定ガイドが最高のものとして見つかりました:https://jason.pureconcepts.net/2016/09/install-apache-php-mysql-mac-os-x-sierra/ – doncadavona