Search code examples
phpsymfonypermissionslocalserver

Symfony2 project on local server


I am trying to run a Symfony2 project on my local server after downloading it from the FTP. I keep getting this error when running the server:

Warning: require(app_dev.php): failed to open stream: No such file or directory in /Users/bogdan/Sites/httpdocs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php on line 36

I am running everything on developer mode.


Solution

  • I would suggest to read http://symfony.com/doc/current/book/installation.html firstly.

    Anyway I think that you run console from a bad path. You have to run app/console server:run. It means that you have to be in a root directory of your project.

    cd my_symfony2_project
    php app/console server:run