Symfony 2 全新 windows 安装 - 网络文件夹权限问题

Symfony 2 fresh windows install - web folder permissions issue

我在设置 symfony 时遇到问题。

事实上,我可以在本地访问我的项目(这是一个工作回购的克隆)但是 css 和 js 似乎坏了,如你所见:

我在 windows 10,网络符号链接看起来没问题(文件在这里),这是我的虚拟主机:

<VirtualHost *:8080>
  ServerName local.franckfurt
  ServerAlias local.franckfurt
  DocumentRoot c:/wamp64/www/.../web
  <Directory "C:/wamp64/www/...">
    Options Indexes FollowSymLinks SymLinksifOwnerMatch
    AllowOverride all
    Order Allow,Deny
    Allow from All
    Require local
  </Directory>
</VirtualHost>

我试过添加 umask(0002);在我的应用程序文件和控制台中行没有成功,使用 git bash 用于网络存储库上的 chmod 775 命令和我已经错过的其他一些东西。

提前感谢您的宝贵时间,

库普里斯

尝试添加:

Require All Granted

而不是Require local

并查看 http://httpd.apache.org/docs/2.4/upgrading.html 以获得额外的升级信息。

我想你忘了install assets:

php app/console assets:install web

http://symfony.com/doc/2.7/best_practices/web-assets.html

您的目录应该与您的 DocumentRoot 匹配

DocumentRoot c:/wamp64/www/.../web
<Directory "C:/wamp64/www/.../web">

注意 <Directory >

中的 web

http://symfony.com/doc/current/setup/web_server_configuration.html

最后,我激活了管理员帐户,更改了用户的 windows 权限,并且在清除缓存后,它开始工作了。 不知道这是否是最佳解决方案,但目前有效。 感谢您的所有回复。