我试图让 Symfony2 在我的共享虚拟主机上工作,但是当我运行 app/console 时,它会出现段错误。这是默认的 Symfony2 2.0.16 安装。
[kadaan@webhost Symfony]$ php app/console
Segmentation fault
[kadaan@webhost Symfony]$ php -v
PHP 5.3.13 (cgi-fcgi) (built: May 8 2012 17:05:11)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
我是所有文件的所有者,它们都是全局可读的。我无权访问 apache 日志,因此无法检查其中是否有任何有用的信息。
这是我对 Symfony 的 check.php 的输出,以防万一:
** Mandatory requirements **
OK Checking that PHP version is at least 5.3.2 (5.3.13 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
OK Checking that the mb_strlen() function is available
OK Checking that the iconv() function is available
OK Checking that the utf8_decode() is available
OK Checking that the posix_isatty() is available
[[WARNING]] Checking that the intl extension is available: FAILED
*** Install and enable the intl extension (used for validators) ***
[[WARNING]] Checking that a PHP accelerator is installed: FAILED
*** Install a PHP accelerator like APC (highly recommended) ***
[[WARNING]] Checking that php.ini has short_open_tag set to off: FAILED
*** Set short_open_tag to off in php.ini ***
[[WARNING]] Checking that php.ini has magic_quotes_gpc set to off: FAILED
*** Set magic_quotes_gpc to off in php.ini ***
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: mysql, sqlite, sqlite2
有没有其他人解决了这个问题,或者可以给我指点检查什么?