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.

Ubuntu

  1. Run the command "sudo dpkg-reconfigure tzdata" and choose the correct timezone from the menus.
  2. 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.
  3. Reboot.

CentOS

  1. Log in as root.
  2. 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".
  3. 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.
  4. Edit the file "/etc/sysconfig/clock". Change the setting for "ZONE" to be that of the timezone you got from the tzselect command.
  5. 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.
  6. Reboot.

You should then find that even IE7 happily logs you in and you stay logged in.