首页 文章

Symfony 403错误

提问于
浏览
0

我刚刚在运行Yosemite的Mac上安装了Symfony,但仍然遇到403错误 . 这不仅影响我安装symfony的目录,还影响以前工作正常的其他目录中的站点!到目前为止,我尝试过:

  • 遵循Symfony安装页面上的"Setting up permissions"说明... http://symfony.com/doc/current/book/installation.html("Using ACL on a system that supports chmod +a"和"change the umask so that the cache and log directories will be group-writable or world-writable")所以我猜问题与日志和缓存文件无关 .

  • 使用...更新apache配置要求所有已授予全部允许

  • 检查用户权限:选项索引MultiViews AllowOverride无订单允许,拒绝全部允许

  • 很多杀戮和重启apache

还在......

被禁止

您无权访问此服务器上的/ projectx / .

以前有人见过这个问题吗?

非常感谢

1 回答

  • 0

    非常感谢你的建议,我想通了 . 问题是我将我的应用程序放在apache doc root中(symfony默认使用不同的Web服务器) . 我需要创建一个虚拟主机(并告诉apache首先使用httpd-vhosts.conf)

    这篇文章有答案... http://dab.io/posts/using-apache-for-developing-with-symfony.html

    再次感谢!

相关问题