Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的项目在它的开发环境中运行良好。但是,当我尝试访问没有 *_dev.php url 前缀的 prod 版本时,我会被重定向到登录页面(应该如此),并且在登录时会发出 500 内部服务器错误。
对于产品站点和我的开发机器都是如此。这里出了什么问题?
清除缓存并将权限 777 设置为 prod 文件夹。
清除缓存php bin/console cache:clear 的命令:获得完全权限的命令:sudo chmod -R 777 /var/cache/prod
php bin/console cache:clear
sudo chmod -R 777 /var/cache/prod
这应该工作!