You are not logged in.

#1 2012-05-15 08:15:03

sargath
Member
Registered: 2011-09-01
Posts: 13

[SOLVED] Symfony 2 , instalation and configuration....

Hi

Iv'e got a problem with Symfony app/check.php goes everything OK, but when i want to start "localhost/sym/web/app_dev.php" got an Error

Whoops, looks like something went wrong.

InvalidArgumentException: There is no extension able to load the configuration for "framework" (in /srv/http/sym/app/config/config_dev.yml). Looked for namespace "framework", found none

    in /srv/http/sym/vendor/symfony/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php line 272
    at YamlFileLoader->validate() in /srv/http/sym/vendor/symfony/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php line 242
    at YamlFileLoader->loadFile() in /srv/http/sym/vendor/symfony/src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php line 42
    at YamlFileLoader->load() in /srv/http/sym/vendor/symfony/src/Symfony/Component/Config/Loader/DelegatingLoader.php line 50
    at DelegatingLoader->load() in /srv/http/sym/app/AppKernel.php line 34
    at AppKernel->registerContainerConfiguration() in /srv/http/sym/app/bootstrap.php.cache line 863
    at Kernel->buildContainer() in /srv/http/sym/app/bootstrap.php.cache line 779
    at Kernel->initializeContainer() in /srv/http/sym/app/bootstrap.php.cache line 513
    at Kernel->boot() in /srv/http/sym/app/bootstrap.php.cache line 544
    at Kernel->handle() in /srv/http/sym/web/app_dev.php line 27

Plz help!

BR

Last edited by sargath (2012-06-21 06:38:56)

Offline

#2 2012-05-18 16:37:53

leokolln
Member
From: Florianópolis, SC, Brasil
Registered: 2008-03-05
Posts: 12
Website

Re: [SOLVED] Symfony 2 , instalation and configuration....

Exact same problem here!

Offline

#3 2012-06-20 10:52:29

sargath
Member
Registered: 2011-09-01
Posts: 13

Re: [SOLVED] Symfony 2 , instalation and configuration....

Ohhhh man i got it smile

Firs of All check if you have those things because I always used apps in php that never bother about this things:


Make sure that the following line is uncommented in httpd.conf in the section/(after the line)

<IfModule mime_module>:
  TypesConfig conf/mime.types

Uncomment the following line in httpd.conf(optional):
MIMEMagicFile conf/magic

Add this line in /etc/httpd/conf/mime.types:
  application/x-httpd-php        php php5



After that Symfony 2 started working very well.

Gosh i spend hours with loooking how to get it done. That's strange there is no mention about it in Symfony Documentation. All Servers got it default enabled ? I don't think so.

BR & Good Luck with it smile

Offline

#4 2012-06-20 10:54:08

sargath
Member
Registered: 2011-09-01
Posts: 13

Re: [SOLVED] Symfony 2 , instalation and configuration....

I've used Symfony 2.0.15 right now.

sargath wrote:

Ohhhh man i got it smile

Firs of All check if you have those things because I always used apps in php that never bother about this things:


Make sure that the following line is uncommented in httpd.conf in the section/(after the line)

<IfModule mime_module>:
  TypesConfig conf/mime.types

Uncomment the following line in httpd.conf(optional):
MIMEMagicFile conf/magic

Add this line in /etc/httpd/conf/mime.types:
  application/x-httpd-php        php php5



After that Symfony 2 started working very well.

Gosh i spend hours with loooking how to get it done. That's strange there is no mention about it in Symfony Documentation. All Servers got it default enabled ? I don't think so.

BR & Good Luck with it smile

Offline

Board footer

Powered by FluxBB