Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 10:41:27

Author Topic: PHP Timezone settings change  (Read 2531 times)

0 Members and 1 Guest are viewing this topic.

Offline zokkie

  • Junior Member
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
PHP Timezone settings change
« on: 2015-05-22, 14:30:50 »
Hi there,

After sh /script/fixphp or fixall, PHP timezone settings always returned to Europe/London. I will always go back to my settings Europe/Amsterdam. How to do it. My php 5.4.40 and is php_fpm_event.

Thanks.
« Last Edit: 2015-05-22, 14:34:54 by zokkie »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP Timezone settings change
« Reply #1 on: 2015-05-22, 14:33:13 »
Inform here your 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zokkie

  • Junior Member
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: PHP Timezone settings change
« Reply #2 on: 2015-05-22, 14:36:17 »
A. Kloxo-MR: 6.5.0.f-2015040701

B. OS: CentOS release 6.6 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.43-1.ius.el6.x86_64
   2. PHP: php54-5.4.40-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.29-2.mr.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
   7. Dns: bind-9.10.0-P2.3.mr.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          1700       1622         77          8          0       1341
   -/+ buffers/cache:        280       1419
   Swap:         2000        120       1879

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP Timezone settings change
« Reply #3 on: 2015-05-22, 14:43:13 »
Copy  /home/phpini/tpl/php.ini.tpl to /home/phpini/tpl/custom.php.ini.tpl and then change 'date.timezone' in custom.php.ini.tpl.

After that, run fixphp or fixall.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zokkie

  • Junior Member
  • *
  • Posts: 34
  • Karma: +0/-0
    • View Profile
Re: PHP Timezone settings change
« Reply #4 on: 2015-05-22, 14:55:00 »
Mustafa, Thanks. It works.

Thanks again.

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.072 seconds with 18 queries.

web stats analysis