Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Just trying to install/configure symfony2

Tags:

symfony

I've just download a symfony2 (sf 2.0.12) with vendors, and when i go to http://foo.localhost/config.php I get this message:

Welcome! Welcome to your new Symfony project. This script will guide you through the basic configuration of your project. You can also do the same by editing the ‘app/config/ parameters.ini’ file directly.
- Configure your Symfony Application online
- Bypass configuration and go to the Welcome page
- Re-check configuration

Then I click "Configure your Symfony.." And i get this:

InvalidConfigurationException: The child node "db_driver" at path "fos_user" must be configured.

Is the same for you?

EDIT:

Besides, there isn't anything about the FOSUserBundle in appKernel or autoload files, nor in vendor folder. Anyway, I added this lines below to app/config/config.yml file:

fos_user:
    db_driver: orm
    firewall_name: main

but the error is the same.

like image 562
ziiweb Avatar asked Mar 20 '12 15:03

ziiweb


2 Answers

Just in case anyone else needs this...

I had to run "composer update" on my Symfony installation without FOSUserBundle first. Then do it again with FOSUserBundle added to my composer.json file.

like image 192
Ozmodiar Avatar answered Oct 21 '22 23:10

Ozmodiar


Looks like you are trying to install the FOSUserBundle at the same time as your Symfony2 install.

Either remove the bundle before installing or configure the missing keys it is asking for.

like image 34
leek Avatar answered Oct 22 '22 01:10

leek