PHP date.timezone with EasyApache4 EA4

jmginer

Well-Known Member
Jul 26, 2006
159
7
168
Alicante
cPanel Access Level
Root Administrator
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!
 

JacobPerkins

Well-Known Member
May 2, 2014
617
97
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!