Symfony 错误 500 与 app.php,在 app_dev.php 上工作正常 [英] Symfony error 500 with app.php, works fine on app_dev.php

查看:20
本文介绍了Symfony 错误 500 与 app.php,在 app_dev.php 上工作正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试通过访问 app.php 来使用我们的(基本)Symfony 2 应用程序.但是,每当我尝试访问 app.php 时,都会收到错误 500.我检查了日志,生产日志是空的.我已经尝试了配置文件中的资产条目,但无济于事.还有其他人对如何解决这个问题有任何想法吗?

I am currently trying to use our (basic) Symfony 2 app by accessing app.php. However, whenever I try to access app.php, I get an error 500. I have checked the logs, the production log is empty. I have tried the assetic entry in the config file, but to no avail. Anyone else who has any ideas on how to fix this?

这是一个非常基本的应用程序(目前),只有一些路由更改和一个新的控制器.大部分是html(作为测试),所以它不可能是我们目前写的php.

This is a very basic application (for now), with just some routing changes and a new controller. The most part is html (as a test), so it can't be the php we've written so far.

--edit:我目前没有让 documentroot 指向/web 目录,但我在服务器上没有管理员权限.但是,因为该应用程序在 app_dev.php 中运行,所以我看不出这会是什么问题?

--edit: I currently do not have the documentroot pointing to the /web directory, but I don't have admin rights on the server. However, because the app works in app_dev.php, I don't see how this could be a problem?

推荐答案

我通过从我的 .yml 配置文件中删除一个选项卡并联系服务器管理员将目录根设置为/web 来修复它.

I fixed it by removing a tab from my .yml config files and contacting the serveradmin to set the directoryroot to /web.

这篇关于Symfony 错误 500 与 app.php,在 app_dev.php 上工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆