我正在开发 Ubuntu 14 ,在创建数据库时出现以下错误:
$ php app/console doctrine:database:create
这是错误输出:
PHP Warning: require_once(/home/jesse/playground/www/symfony/htdocs/app/bootstrap.php.cache):
failed to open stream: No such file or directory in
/home/jesse/playground/www/symfony/htdocs/app/console on line 10
PHP Fatal error: require_once(): Failed opening required
'/home/jesse/playground/www/symfony/htdocs/app/bootstrap.php.cache'
(include_path='.:/usr/share/php:/usr/share/pear') in
/home/jesse/playground/www/symfony/htdocs/app/console on line 10
我尝试过什么
这是在Ubuntu下运行Symfony2的几个问题之一,另一个迫使您实施umask(0000)
,否则您必须获得chmod +a
和log
文件夹的cache
权限,对于看似简单的事情来说,这似乎有点麻烦。
有谁知道该怎么解决这个错误?
答案 0 :(得分:2)
这应该可以解决问题:
php /home/jesse/playground/www/symfony/htdocs/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php