The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP date.timezone with EasyApache4 EA4

Discussion in 'EasyApache' started by jmginer, Apr 26, 2016.

Tags:
  1. jmginer

    jmginer Well-Known Member

    Joined:
    Jul 26, 2006
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Benifato, Spain
    Hello!

    in EA4 the PHP value: date.timezone is configured by default in UTC.

    I tried to edit the php.ini of the affected domain to configure: date.timezone = Europe/Madrid

    But don't take effect.

    My 2 questions are:

    How to configure a default value for all the server?
    How to configure per domain?

    Thanks!
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    509
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    You can edit either the global php.ini via WHM -> MultiPHP INI Editor, or you can also adjust this on a per-user basis. In EA4, you need to rename the php.ini that's in the users homedirectory to '.user.ini', and this will cause it to take affect. We're making this change in 58 shortly to fix a bug with PHP we've found.

    I hope this helps!
     
Loading...

Share This Page