【发布时间】:2010-11-23 16:01:57
【问题描述】:
我为我的新工作站全新安装了 Ubuntu 10.10。
我使用taskel安装了lamp-server。
然后我使用 a2enmod 实用程序启用了 userdir 模块。
加载一个conf文件/etc/apache2/mods-enabled/userdir.conf
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride All
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Allow from all
Order allow,deny
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
</IfModule>
我在/etc/apache2/mods-enabled/php5.conf中评论了所有推荐的行
#<IfModule mod_userdir.c>
# <Directory /home/*/public_html>
# php_admin_value engine Off
# </Directory>
#</IfModule>
我也有chmod -R 755 public_html和chgrp -R www-data public_html
在所有这些设置之后
http://localhost/~shoaib 结果...
您无权访问此服务器上的 /~shoaib。
我在这里错过了什么????
【问题讨论】:
-
我猜应该是服务器故障。顺便说一句,你重启了 apache 吗?
标签: apache2 ubuntu-10.10