0% found this document useful (0 votes)
46 views1 page

Timezone PDF

This document discusses how to resolve a PHP date/time zone warning by editing the php.ini file to set the correct time zone. It provides commands to find the current time zone, edit php.ini to match, and restart the Apache or lighttpd web server to apply the changes. Alternatively, the time zone can be set directly in PHP code if php.ini is not editable.

Uploaded by

twodos111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views1 page

Timezone PDF

This document discusses how to resolve a PHP date/time zone warning by editing the php.ini file to set the correct time zone. It provides commands to find the current time zone, edit php.ini to match, and restart the Apache or lighttpd web server to apply the changes. Alternatively, the time zone can be set directly in PHP code if php.ini is not editable.

Uploaded by

twodos111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

How do I fix this problem under UNIX / Linux php running Apache or lighttpd web server?

his problem or warning can be easil! fixed b! editing the /etc/php"ini file" #pen a command$line terminal %select Applications & Accessories & erminal'( and then t!pe the following commands or login using ssh to the remote server" )irst find out !our time*one from /etc/s!sconfig/cloc+ file( enter, # cat /etc/sysconfig/clock ZONE="America/Chicago" UTC=true ARC=false -dit /etc/php"ini( enter, # i /etc/!h!"ini .a+e the changes as follows( enter %find date"time*one and update it as follows',
#ate"time$one="America/%ima"

/ave and close the file" 0estart the Apache server, # ser ice htt!# restart If !ou are using lighttpd t!pe the following to restart it, # ser ice lightt!# restart Note, If !ou don1t have access to the /etc/php"ini file( add the following line in !our php file before an! date related functions,
<?php """" """" """ "" ?>

#ate&#efault&time$one&set'"America/%ima"() !h!info'()

You might also like