Linux & Apache Server – Set Local Time to London, UK, Europe

A quick and simple command you might need from time-to-time if you’re running apache webservers in one or other Linux flavour.

We often grab EC2 instances on Amazon, for example, for our clients and, for various reasons, we want the server to know what time it is here in the UK!

So here’s the command to do so:

ln -sf /usr/share/zoneinfo/Europe/London localtime

Leave a comment below if you’d like to know more, or something related to this.

1 thought on “Linux & Apache Server – Set Local Time to London, UK, Europe”

  1. As ever, if you’re using Amazon Linux, which is mainly CentOS, you’ll need to sudo before that command. Type “sudo -i” and hit enter before doing anything from PuTTy to do this for all your commands…

    Reply

Leave a comment

No links of any kind allowed in comments - if you add any links, your comment will automatically be deleted.