Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP date.timezone with EasyApache4 EA4

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

  1. jmginer

    jmginer Well-Known Member

    Joined:
    Jul 26, 2006
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    166
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. JacobPerkins

    JacobPerkins Well-Known Member

    Joined:
    May 2, 2014
    Messages:
    619
    Likes Received:
    96
    Trophy Points:
    103
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice