Caching 清除IIS上的Symfony缓存
我正在WindowsWebServer2008的IIS服务器上运行Symfony,并带有MSQL数据库 我授予Web服务器写缓存和日志目录的完全权限。但当我通过控制台命令清除缓存时,它会说Caching 清除IIS上的Symfony缓存,caching,iis,symfony,Caching,Iis,Symfony,我正在WindowsWebServer2008的IIS服务器上运行Symfony,并带有MSQL数据库 我授予Web服务器写缓存和日志目录的完全权限。但当我通过控制台命令清除缓存时,它会说 php app/console cache:clear --env=dev --no-debug Der Befehl "stty" ist entweder falsch geschrieben oder konnte nicht gefunden werden. [RuntimeException]
php app/console cache:clear --env=dev --no-debug
Der Befehl "stty" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
[RuntimeException]
Unable to write in the "C:\inetpub\wwwroot\LocalUser\client_transparency.stage\app/cache/dev_new" directory
cache:clear [--no-warmup] [--no-optional-warmers]
我甚至停止了IIS并再次尝试,但同样的错误发生了
另一个问题是,在生产模式下,我有时在前端只有一个空白页。当您运行symfony命令行时,请使用您的本地帐户,检查您登录的用户是否有读写权限
IIs总是以其他用户的身份运行,这取决于您如何配置它为了运行仅限管理员的应用程序,我必须以这种相对费力的方式打开命令行:
- 按Win,键入“cmd”
- 等待菜单填充
- 将手从键盘上提起,放在鼠标上
- 右键单击“cmd.exe”菜单项
- 选择“以管理员身份运行”
- 在项目目录路径中运行命令:php-app/console-cache:clear--env=dev--no-debug
php应用程序/控制台缓存:clear--env=dev--no debug
?