404 Not Found after El Capitan update

▼魔方 西西 提交于 2019-12-13 21:35:51

问题


Localhost is misconfigured after El-Capitan update yesterday. Im really not a mac person so I don't know how to fix this. Localhost is working fine but my username/sites can't be found.

Exactly the same question here but the answer provided does not work for me.


回答1:


Found a solution. Edit the apache configuration. In my case, the php module was commented so:

Run sudo nano /etc/apache2/httpd.conf via terminal and uncomment the following if they are commented:

LoadModule authz_core_module libexec/apache2/mod_authz_core.so
LoadModule authz_host_module libexec/apache2/mod_authz_host.so
LoadModule userdir_module libexec/apache2/mod_userdir.so
LoadModule include_module libexec/apache2/mod_include.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
LoadModule php5_module libexec/apache2/libphp5.so



回答2:


If you get "permission denied", check if you have comment out these lines.

220 <Directory />
221     AllowOverride none
222     Require all denied
223 </Directory>


来源:https://stackoverflow.com/questions/33198875/404-not-found-after-el-capitan-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!