Symfony 使用“fosUser”和“prod.log”登录是临时锁定的

Symfony 使用“fosUser”和“prod.log”登录是临时锁定的,symfony,fosuserbundle,hwioauthbundle,symfony-2.4,Symfony,Fosuserbundle,Hwioauthbundle,Symfony 2.4,捆 -fosUserBundle -HWIOAuthBundle 一开始,一切正常 但是,每5天,fosUser登录被锁定1天或更短时间。。。 他返回的登录名或密码不正确。。。 当fosUser被锁定时,HWIOAuthBundle仍能工作 清除缓存后,问题仍然存在。。。 项目将创建prod目录及其子目录/文件。。。 但是日志目录是空的 当您与web服务器用户以外的其他用户一起使用控制台时,这是一个常见问题。要解决此问题,您应该修复日志和缓存目录权限,如上所示: rm -rf app/cache

捆 -fosUserBundle -HWIOAuthBundle

一开始,一切正常 但是,每5天,fosUser登录被锁定1天或更短时间。。。 他返回的登录名或密码不正确。。。 当fosUser被锁定时,HWIOAuthBundle仍能工作

清除缓存后,问题仍然存在。。。 项目将创建prod目录及其子目录/文件。。。
但是日志目录是空的

当您与web服务器用户以外的其他用户一起使用控制台时,这是一个常见问题。要解决此问题,您应该修复日志和缓存目录权限,如上所示:

rm -rf app/cache/*
rm -rf app/logs/*

HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\  -f1`
sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs

你检查过了吗?所有项目都是755,现在我把logs目录和cache目录改为777 recursive。也许这才是真正的原因。谢谢你的回复