繁体   English   中英

Symfony2.8:安装未完成

[英]Symfony2.8 : installation not complete

创建项目/var/www/html# php ../symfony.phar new MyProject 2.8时,我下载了Symfony2等

最后,我收到此消息:

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上)

因为要使您的应用程序正常运行,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"

当然,如果“欧洲/巴黎”不是您的时区,则可以用您的时区代替。

请在您的php.ini设置时区

date.timezone = " Europe/Paris"

之后重新启动xampp

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM