Symfony安装配置失败

时间:2022-06-01 21:21:37

本来因为Symfony的强大,所以想瞅瞅看看,无奈官网用我们的校园网卡的要命,一点新鲜感都没有了。但还是等待了快一个多小时,下载完毕。


安装过程如下:

➜  Sites  composer create-project symfony/framework-standard-edition path/ "2.5.*"
Installing symfony/framework-standard-edition (v2.5.0)
- Installing symfony/framework-standard-edition (v2.5.0)
Downloading: 100%

Created project in path/
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing jdorn/sql-formatter (v1.2.17)
Downloading: 100%

- Installing psr/log (1.0.0)
Downloading: 100%

- Installing twig/twig (v1.15.1)
Downloading: 100%

- Installing doctrine/lexer (v1.0)
Downloading: 100%

- Installing doctrine/annotations (v1.1.2)
Downloading: 100%

- Installing doctrine/collections (v1.2)
Downloading: 100%

- Installing doctrine/cache (v1.3.0)
Downloading: 100%

- Installing doctrine/inflector (v1.0)
Downloading: 100%

- Installing doctrine/common (v2.4.2)
Downloading: 100%

- Installing symfony/symfony (v2.5.0)
Downloading: 100%

- Installing symfony/icu (v1.0.1)
Downloading: 100%

- Installing doctrine/dbal (v2.4.2)
Downloading: 100%

- Installing doctrine/doctrine-bundle (v1.2.0)
Downloading: 100%

- Installing kriswallsmith/assetic (v1.1.2)
Downloading: 100%

- Installing symfony/assetic-bundle (v2.3.0)
Downloading: 100%

- Installing doctrine/orm (v2.4.3)
Downloading: 100%

- Installing twig/extensions (v1.0.1)
Downloading: 100%

- Installing swiftmailer/swiftmailer (v5.2.1)
Downloading: 100%

- Installing symfony/swiftmailer-bundle (v2.3.7)
Downloading: 100%

- Installing monolog/monolog (1.10.0)
Downloading: 100%

- Installing symfony/monolog-bundle (v2.6.0)
Downloading: 100%

- Installing sensio/distribution-bundle (v3.0.1)
Downloading: 100%

- Installing sensio/framework-extra-bundle (v3.0.1)
Downloading: 100%

- Installing incenteev/composer-parameter-handler (v2.1.0)
Downloading: 100%

- Installing sensio/generator-bundle (v2.3.5)
Downloading: 100%

kriswallsmith/assetic suggests installing leafo/lessphp (Assetic provides the integration with the lessphp LESS compiler)
kriswallsmith/assetic suggests installing leafo/scssphp (Assetic provides the integration with the scssphp SCSS compiler)
kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides the integration with phpcssembed to embed data uris)
kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provides the integration with the SCSS compass plugin)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
Writing lock file
Generating autoload files
Would you like to use Symfony 3 directory structure? [y/N] N
Would you like to install Acme demo bundle? [y/N] y
Installing the Acme demo bundle.
Creating the "app/config/parameters.yml" file
Some parameters are missing. Please provide them.
database_driver (pdo_mysql):
database_host (127.0.0.1):
database_port (null): 3306
database_name (symfony):
database_user (root):
database_password (null): 0417
mailer_transport (smtp):
mailer_host (127.0.0.1):
mailer_user (null):
mailer_password (null):
locale (en):
secret (ThisTokenIsNotSoSecretChangeIt): 1234
debug_toolbar (true):
debug_redirects (false):
use_assetic_controller (true):



[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 /Users/lishuming/Sites/path/vendor/monolog/monolog/src/Monolog/Logger.php line 233



cache:clear [--no-warmup] [--no-optional-warmers]


Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception



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



create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [package] [directory] [version]