Webeex

Registered
Jun 27, 2019
4
0
1
St-Jean
cPanel Access Level
Root Administrator
Hi,

I'm trying to change the default timezone in PHP log. I'm actually in php 7.3 with FPM and the log file are in UTC. I set the php default timezone to America\Newyork without any change.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello @Webeex,

Can you share the full steps you used to update the default timezone for PHP version 7.3?

Thank you.
 

Webeex

Registered
Jun 27, 2019
4
0
1
St-Jean
cPanel Access Level
Root Administrator
Hello @Webeex,

Can you share the full steps you used to update the default timezone for PHP version 7.3?

Thank you.
Sorry for delay, didn't see your answer.

I went into MultiPHP INI editor, click on editor mode, search for "timezone" in the php ini and modified to :
[Date]
; Defines the default timezone used by the date functions
; PHP: Runtime Configuration - Manual
date.timezone = "America/New_York"
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Sorry for delay, didn't see your answer.

I went into MultiPHP INI editor, click on editor mode, search for "timezone" in the php ini and modified to :
[Date]
; Defines the default timezone used by the date functions
; PHP: Runtime Configuration - Manual
date.timezone = "America/New_York"
Hello @Webeex,

It's possible this relates to an internal case (CPANEL-24224) where PHP-FPM isn't automatically reloaded upon the use of WHM >> MultiPHP INI Editor >> Editor Mode. Can you execute the commands below and confirm if the issue persists?

Code:
/usr/local/cpanel/scripts/php_fpm_config --rebuild
/usr/local/cpanel/scripts/restartsrv_apache_php_fpm
/usr/local/cpanel/scripts/restartsrv_httpd
Thank you.
 

Webeex

Registered
Jun 27, 2019
4
0
1
St-Jean
cPanel Access Level
Root Administrator
Hello @Webeex,

It's possible this relates to an internal case (CPANEL-24224) where PHP-FPM isn't automatically reloaded upon the use of WHM >> MultiPHP INI Editor >> Editor Mode. Can you execute the commands below and confirm if the issue persists?

Code:
/usr/local/cpanel/scripts/php_fpm_config --rebuild
/usr/local/cpanel/scripts/restartsrv_apache_php_fpm
/usr/local/cpanel/scripts/restartsrv_httpd
Thank you.
Just execute the 3 commands with success but the log still in UTC:
[09-Jul-2019 15:14:25 UTC] PHP Warning: Use of undefined constant CACHE_DIR
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Just execute the 3 commands with success but the log still in UTC:
[09-Jul-2019 15:14:25 UTC] PHP Warning: Use of undefined constant CACHE_DIR
Hello @Webeex,

Could you open a support ticket so we can take a closer look at your system and confirm if this is a defect? You can post the ticket number here once it's opened and I'll link this thread to it.

Thank you.