Getting stuck in redirect loop on admin login

This issue has appeared when installing wealthbot.io without vagrant on a local environment

Problem Description

Once the app is installed:

  1. Go to: http://localhost:8000/admin/login
  2. And enter username: webo, password: weboDemo32

You are redirected back to http://localhost:8000/admin/login

Background

At the time of composer install while setting the config parameters.
the site domain was 'local.wealthbot.io'

When running project as per symfony, by running the following command php app/console server:run the app is served at 'localhost:8000'

Solution

  1. Make sure your Apache conf serves wealthbot on 'local.wealthbot.io'
  2. In '/etc/php5/cli/php.ini' uncomment session.save_path, change session.use_cookies 1 and session.secure_cookies to 1.
  3. And set the permission to app folders

Now the app works without vagrant and Virtual Box.