Wednesday, October 17, 2012

How to change timezone on Apache Webserver

My Apache Webserver had not timezone correct. If I wanted timezone correct, I had to do some configuration on Apache Webserver. But how to do this?

To change timezone on my Apache Webserver, I followed the next steps:
  1. Type sudo nano /etc/php5/apache2/php.ini;
  2. Search for "date.timezone" and modify to "date.timezone="Europe/London" or to your timezone;
  3. Save the file and exit using CTRL+X;
  4. Type sudo /etc/init.d/apache2 restart

To see what is your timezone, check this website

At the moment, my operating system was Ubuntu 11.10 and Apache Webserver was 2.2.20!

No comments:

Post a Comment