Changing The Timezone in a Cloud Linux Deployment

Changing The Timezone in a Cloud Linux Deployment

You can set the timezones in Cloud Liunuz by editing the individual versions conf file:

/opt/alt/php52/etc/php.ini 
/opt/alt/php53/etc/php.ini 
/opt/alt/php54/etc/php.ini 
/opt/alt/php55/etc/php.ini 

Then just specify the default timezone.

Example: date.timezone = "Asia/Shanghai" 

You can also give your customer the ability to modify it in the PHP selector option.

You would modify: /etc/cl.selector/php.conf 
Directive = date.timezone 
Default = Asia/Shanghai
Type = Value 
Comment = Change your server's timezone
分享到 :

Leave a Reply

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