Symfony2.8:安装不完整

时间:2016-02-22 10:54:08

标签: php symfony

我在创建项目/var/www/html# php ../symfony.phar new MyProject 2.8

时下载了Symfony2 et

最后,我收到了这条消息:

Preparing project...

 ✕  Symfony 2.8.2 was successfully installed but your system doesn't meet its
 technical requirements! Fix the following issues before executing
 your Symfony application:

 * date.timezone setting must be set
   > Set the "date.timezone" setting in php.ini* (like Europe/Paris).

 After fixing these issues, re-check Symfony requirements executing this command:

   php Projet_miage/app/check.php

 Then, you can:

    * Change your current directory to /var/www/html/Projet_miage

    * Configure your application in app/config/parameters.yml file.

    * Run your application:
    1. Execute the php app/console server:run command.
    2. Browse to the http://localhost:8000 URL.

* Read the documentation at http://symfony.com/doc

但为什么?

(我有xampp而且我在Ubuntu上)

2 个答案:

答案 0 :(得分:2)

因为要使您的应用程序正常运行,Symfony需要一些特定的PHP配置。

运行:

找到你的php.ini
php --ini

这将输出如下内容:

  

配置文件(php.ini)路径:/ path / to / php
  加载的配置文件:/path/to/php/php.ini

然后,打开它:

nano /path/to/php/php.ini

找到第date.timezone行并将其更改为:

date.timezone = "Europe/Paris"

当然,如果"欧洲/巴黎"不是你的时区,你可以用你的时区代替。

答案 1 :(得分:0)

请在php.ini

中设置时区

date.timezone = " Europe/Paris"

之后重启xampp