Symfony php.ini Debian [英] Symfony php.ini Debian
问题描述
我正在Oracle VM VirtualBox上使用Debian 7 amd64 LAMP服务器。
我正在尝试安装Symfony,但遇到一些小问题
I'm using Debian 7 amd64 LAMP server on Oracle VM VirtualBox. I'm trying to install Symfony and I'm having some lil problems
当我运行命令时:
php my_project_name / app /check.php
它说:
[错误]
您的系统尚未准备好运行Symfony2项目。
修复以下强制性要求:
[ERROR] Your system is not ready to run Symfony2 projects. Fix the following mandatory requirements:
- 必须设置date.timezone设置>在php中设置 date.timezone设置.ini *(如欧洲/巴黎)。
我已经尝试使用以下命令编辑php.ini文件:
sudo nano / etc / php5 / apache2 / php.ini
I have already tried to edit php.ini file with following command: sudo nano/etc/php5/apache2/php.ini
并在 [date] 部分下;删除; 并编辑为: date.timezone =欧洲/赫尔辛基
and there under [date] section; deleted ; and edited to: date.timezone = Europe/Helsinki
重新启动后。
中有正确的时区
默认时区欧洲/赫尔辛基,
(本地值)
date.timezone欧洲/赫尔辛基,
(主值)
欧洲/赫尔辛基
Default timezone Europe/Helsinki, (Local Value) date.timezone Europe/Helsinki, (Master Value) Europe/Helsinki
有什么建议吗? Symfony可能还会使用另一个php.ini文件吗?
Any tips? May there be another php.ini file Symfony uses?
推荐答案
您正在通过命令行执行检查脚本,因此是php。 CLI和apache之间的ini不同。
要为cli lauch找到正确的php.ini,请使用以下命令:
You are executing the check script via command line, so the php.ini is different between the CLI and apache. For find the correct php.ini for the cli lauch the following command:
php -i | grep 'php.ini'
并检查已加载的配置文件
行
希望获得帮助
这篇关于Symfony php.ini Debian的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!