Symfony项目安装

Symfony项目安装,symfony,Symfony,我正在尝试使用以下命令在项目文件夹中安装Symfony:composer create project Symfony/framework standard edition path/“2.5.*” 在设置过程中,我会收到一个问题的提示,如果我想安装Aceme演示包,我会回答“是”,安装将继续,但我会再次收到这些问题的提示“查看图像”: 如您所见,我填写了所有详细信息,但这会引发一系列错误: [Symfony\Component\Debug\Exception\ContextErrorExce

我正在尝试使用以下命令在项目文件夹中安装Symfony:
composer create project Symfony/framework standard edition path/“2.5.*”

在设置过程中,我会收到一个问题的提示,如果我想安装Aceme演示包,我会回答“是”,安装将继续,但我会再次收到这些问题的提示“查看图像”:

如您所见,我填写了所有详细信息,但这会引发一系列错误:

[Symfony\Component\Debug\Exception\ContextErrorException]                                                                     

Warning: date_default_timezone_get(): It is not safe to rely on the system's
timezone settings. You are *required* to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those methods 
and you are still getting this warning, you most likely misspelled the timezone
identifier. We selected the timezone 'UTC' for now, but please set date.timezone
to select your timezone. in
/Applications/MAMP/htdocs/Symfony/Project1/vendor/monolog/monolog/src/Monolog/Logger.php line 233
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache处理安装后cmd事件时异常终止

[RuntimeException]                                                         
An error occurred when executing the "'cache:clear --no-warmup'" command. `

我做错了什么

也许使用composer创建项目的一个缺点是,在继续之前,您没有机会查看安装的“检查您的系统配置”部分并修复错误


如果您运行
php app/check.php
,您会发现您没有满足其中一项强制性要求,即在系统的php.ini

中显式设置
日期.timezone

这是因为我在mac上安装了php版本(5.3) Symfony要求5.5

自从我更新了我的版本,我再也看不到这个错误了


谢谢大家的帮助:)

正如错误所说,在
php.ini
中设置
date.timezone
值,你的php版本是什么?不是真的。。。Symfony 2.5的
composer.json
说明了
“php”:“>=5.3.3”
的要求。它可能只是在升级PHP时为您设置了
date.timezone
值。请尝试理解您的问题,并实际尝试解决这些问题。但它指出最好使用php 5.5。请注意,当使用小于5.3.8或等于5.3.16的php版本时,Symfony有一些已知的限制。有关更多信息,请参阅自述文件的“需求”部分。因此,版本可能是问题所在,但不能说是100%,因此建议您理解问题。。。。。