Setting the TimeZone
If you are having problems with logins being accepted, but then being refused access to some pages because they are only available to logged-in users, you will probably find the timezone is set incorrectly. This causes problems particularly with Chrome.
- Run the command "sudo dpkg-reconfigure tzdata" and choose the correct timezone from the menus.
- Edit the file "/etc/php5/apache2/php.ini". Change the setting "date.timezone" to be the correct timezone for your location. There is a list of all the supported timezones.
- Reboot.
- Log in as root.
- Run the command "tzselect". At the end of this, it will output the name of the correct timezone for you, such as "America/New_York".
- Run a command such as "cp /usr/share/zoneinfo/America/New_York /etc/localtime" where you should substitute "America/New_York" for the timezone you got from the the tzselect command.
- Edit the file "/etc/sysconfig/clock". Change the setting for "ZONE" to be that of the timezone you got from the tzselect command.
- Edit the file "/etc/php.ini". Change the setting "date.timezone" to be the correct timezone for your location. There is a list of all the supported timezones.
- Reboot.
You should then find that even IE7 happily logs you in and you stay logged in.