Don't Miss

Fixing phpinfo() timezone error

By on February 28, 2011

I’m getting the following errors in my log file whenever I use phpinfo. But now 08:00 AM it still running yesterday 23:00PM. How can I solved this problem? I’m running Linux Apache server. Anyone care to help?

This problem or warning can be easily fixed by editing the /etc/php.ini file. Open a command-line terminal, and then type the following commands or login using ssh to the remote server.

#1 First find out your timezone from /etc/sysconfig/clock file:
$ cat /etc/sysconfig/clock
ZONE=”Asia/Kuala Lumpur”

#2 Edit /etc/php.ini:
$ vi /etc/php.ini

#3 Modify the changes as belows:

date.timezone=”Asia/Kuala Lumpur”

(find date.timezone and update it)

#4 Save and close the file. Check and Restart the Apache server:
$ /usr/sbin/apachectl -t
Syntax OK
$ /usr/sbin/apachectl restart

About jonboy60

Contact Me for computer repair services, mobile repair services, website repair services, website maintenance, creating website, domain name, hosting services, career opportunities, business offers, Linux solutions for business or home, web and email server solutions, Linux consulting, wordpress web consulting & development and expertise requests. Currently reside in Rawang, Selangor. Email to me on jonboy60{@}

One Comment


    December 28, 2014 at 4:00 pm

    My brother recommended I might like this web site. He was once
    totally right. This put up actually made my day.
    You cann’t imagine simply how much time I had spent for this
    info! Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *