-1

I tried some solutions (ex: Transfer Symfony2 site onto localhost from web server), but never works, the result is always a blank page.

The project is on Symfony 2.3 and my php version is 5.5

Thanks

Community
  • 1
  • 1
nunof
  • 65
  • 8

1 Answers1

1

When accessing a Symfony2 site locally you need reference one of the routing files in the web folder directly. So try http://localhost/app_dev.php/ and it might give you an error message telling you what is going wrong. Also you can check the log files in the /app/logs folder to see what the problem might be.

Edit:
There are also several command line tools that might be needed to set up the project.

app/console doctrine:schema:update --force

This will check the database is in sync with your code and update the database if necessary.

app/console assetic:dump
app/console assets:install
app/console cache:clear

These are used to install css, javascript and other static assets as well as clearing the cache.

dk80
  • 556
  • 2
  • 13
  • When i try http://localhost/app_dev.php/ appears a blank page again. The logs files show only the doctrine debug. The database is sync and I also install css, js and clear the cache – nunof Jun 26 '15 at 10:59
  • If that page is showing blank then it looks like a server setup issue. Check your Apache error and access logs to see if there is anything in there. If not check out http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html to make sure your Apache configuration is correct. – dk80 Jun 26 '15 at 11:10
  • Also make sure your apache configuration is pointing to the "web" folder and not the root folder of the symfony project. – dk80 Jun 26 '15 at 11:12