gpt4 book ai didi

Symfony2 设置

转载 作者:可可西里 更新时间:2023-11-01 13:55:21 30 4
gpt4 key购买 nike

我正在尝试设置示例 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*.

我添加了这个:

suhosin.executor.include.whitelist="phar"

进入 php.ini,但 config.php 仍然显示相同的消息。

最佳答案

1) 检查您是否编辑了正确的 php.ini,通常一个 PHP 安装有多个 php.ini(一个用于 CGI,一个用于 CLI,一个用于 APACHE2)。例如,查看 /etc/php5

2) 检查 phpinfo() 是否考虑了该参数。

3) 引用这篇博文: [Solved] symfony 2 Major problems Major problems have been detected and must be fixed before continuing: Add “phar” to suhosin.executor.include.whitelist in php.ini*.

该帖子建议确保安装 suhosin

sudo apt-get install php5-suhosin

关于Symfony2 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12475890/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com