只想为浩瀚的互联网信息世界添点瓦,希望不会添乱

© 错误记录 Error log | Powered by LOFTER

mac os x 升级10.10.4 后 apache用户目录无法访问

Looks like you need to uncomment the following:

#LoadModule userdir_module libexec/apache2/mod_userdir.so

and

#Include /private/etc/apache2/extra/httpd-userdir.conf

Then in http-userdir.conf you may need to uncomment:

#Include /private/etc/apache2/users/*.conf

Lastly you would need to create /private/etc/apache2/users/username.conf if it doesn't exist. I think it should look something like this:

<Directory "/Users/username/Sites/">

  Options Indexes MultiViews  

AllowOverride None

Require all granted

</Directory>

Make sure to restart the Apache server afterwards with:

sudo apachectl restart

然后发现 php不能执行

LoadModule php5_module /usr/local/opt/php54/libexec/apache2/libphp5.so


出现403 把username.conf设置权限644

 
评论
 
回到顶部