PHP-FPM Log File Default Timezone
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.
-
Hello @Webeex, Can you share the full steps you used to update the default timezone for PHP version 7.3? Thank you. 0 -
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"0 -
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 ;
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?/usr/local/cpanel/scripts/php_fpm_config --rebuild /usr/local/cpanel/scripts/restartsrv_apache_php_fpm /usr/local/cpanel/scripts/restartsrv_httpd
Thank you.0 -
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?
/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_DIR0
Please sign in to leave a comment.
Comments
5 comments