Her*_*ler 5 php suhosin phar symfony
我正在尝试设置示例Symfony2项目,如下所示 http://symfony.com/doc/current/quick_tour/the_big_picture.html
并在访问config.php后我有这个:
Major problems have been detected and must be fixed before continuing:
Add "phar" to suhosin.executor.include.whitelist in php.ini*.
Run Code Online (Sandbox Code Playgroud)
我补充说:
suhosin.executor.include.whitelist="phar"
Run Code Online (Sandbox Code Playgroud)
进入php.ini,但config.php仍显示相同的消息.
1)检查您是否编辑了正确的php.ini,通常PHP安装有几个php.ini(一个用于CGI,一个用于CLI,一个用于APACHE2)./etc/php5例如,看一看.
2)检查phpinfo()是否考虑了参数.
3)请参阅此博客文章: [已解决] symfony 2主要问题已检测到主要问题,必须在继续之前修复:将"phar"添加到php.ini*中的suhosin.executor.include.whitelist.
该帖子建议确保安装suhosin
sudo apt-get install php5-suhosin
Run Code Online (Sandbox Code Playgroud)