Symfony2:空白页面,新Linux机器上没有日志

时间:2012-05-21 16:34:58

标签: symfony

我在使用RHEL的新计算机上部署了我的SF2应用程序。

“apache”下的Check.php表示对缓存/日志的访问权限没问题。

然而,当调用app.php或app_dev.php时,我得到一个空白的回复,app.php的错误代码为500,app_dev.php为200。

在app / logs中没有创建日志文件。

以下是为“apache”用户运行的check.php输出:

******************************** 
* * * Symfony requirements check * * * 
******************************** 
php.ini used by PHP: /etc/php.ini 

** WARNING ** 
* The PHP CLI can use a different php.ini file 
* than the one used with your web server. 
* If this is the case, please ALSO launch this 
* utility from your web server. 
** WARNING ** 

** Mandatory requirements ** OK 
Checking that PHP version is at least 5.3.2 (5.3.3 installed) OK 
Checking that the "date.timezone" setting is set OK 
Checking that app/cache/ directory is writable OK 
Checking that the app/logs/ directory is writable OK 
Checking that the json_encode() is available OK 
Checking that the SQLite3 or PDO_SQLite extension is available OK 
Checking that the session_start() is available OK 
Checking that the ctype_alpha() is available OK 
Checking that the token_get_all() is available OK 
Checking that the APC version is at least 3.0.17 ** Optional checks ** OK 
Checking that the PHP-XML module is installed OK 
Checking that the token_get_all() function is available [[WARNING]] 
Checking that the mb_strlen() function is available: FAILED *** Install and enable the mbstring extension *** OK 
Checking that the iconv() function is available OK 
Checking that the utf8_decode() is available [[WARNING]] 
Checking that the posix_isatty() is available: FAILED *** Install and enable the php_posix extension (used to colorized the CLI output) *** [[WARNING]] 
Checking that the intl extension is available: FAILED *** Install and enable the intl extension (used for validators) *** OK 
Checking that a PHP accelerator is installed OK 
Checking that php.ini has short_open_tag set to off OK 
Checking that php.ini has magic_quotes_gpc set to off OK 
Checking that php.ini has register_globals set to off OK 
Checking that php.ini has session.auto_start set to off ** Optional checks (Doctrine) ** OK 
Checking that PDO is installed OK 
Checking that PDO has some drivers installed: pgsql, sqlite

修改

感谢您提供的所有提示 - 但遗憾的是没有效果......

  • .htaccess正在运作
  • 启用了mod_rewrite
  • display_errors已打开
  • apache日志显示没有错误
  • AppKernel路径很好
  • app_dev.php中的
  • $ kernel-&gt; loadClassCache()是正常的(我在 echo 之后得到一个输出,但 handle 之后没有响应< / LI>

2 个答案:

答案 0 :(得分:0)

检查apache日志 - 您可能会在

中找到它们
/var/log/apache2/errors.log

或者,如果您在vhosts中设置了自定义日志记录位置

/var/log/apache2/errors-your-project.log

调用app_dev.php可能会抛出“你不允许从这里访问”错误,因为默认情况下它不允许从本地主机以外的任何地方进行访问。

有可能你的apache vhosts设置得不对。你会在

中找到它们
/etc/apache2/sites-available/your-project

答案 1 :(得分:0)

这是我的错 - 我正在使用ldap软件包,但没有安装php ldap扩展。

对ldap_connect的调用以@ ...

为前缀