关注互联网与Web前端技术,这里是我记录网上折腾与生活感悟的地方.

Changing The Timezone in a Cloud Linux Deployment

You can set the timezones in Cloud Liunuz by editing the individual PHP 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

未经允许不得转载:Yusky » Changing The Timezone in a Cloud Linux Deployment

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址