设置pow.cx以将Apache用于PHP应用程序

时间:2012-11-22 01:01:09

标签: apache virtualhost pow

我按照他们在this教程中建议的方式设置了Pow和Apache。我的httpd-vhosts.conf包含以下条目。

<VirtualHost *:80>
    DocumentRoot /Users/michael/Dropbox/Development/test
    ServerName test.dev

    <Directory "/Users/michael/Dropbox/Development/test">
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

当我到达http://test.dev/时,我仍然得到403 Forbidden。

错误日志说:

[Wed Nov 21 19:24:21 2012] [crit] [client 127.0.0.1] (13)Permission denied: /Users/michael/Dropbox/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Wed Nov 21 19:24:43 2012] [error] [client 127.0.0.1] (13)Permission denied: access to / denied

还有其他人有这个问题吗?

2 个答案:

答案 0 :(得分:0)

这似乎与Pow无关。 Apache没有在/Users/michael/Dropbox/Development/test内工作的必要权限。

请检查此目录的权限,我认为它们应该是755.请查看:

cd /Users/michael/Dropbox/Development/  
ls -l

然后复制粘贴test目录的行。

答案 1 :(得分:0)

问题是权限。当我将我正在工作的目录的完整路径chmod到755时,它终于奏效了。

〜/,〜/ Dropbox,〜/ Development ... etc。

我敢打赌,有一个更好的方法可以做到这一点,但它正在发挥作用。那么,你去吧。

相关问题