PHP ini help for timezone

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
greatchap
New php-forum User
New php-forum User
Posts: 1
Joined: Sun Nov 12, 2017 10:12 pm

Sun Nov 12, 2017 10:16 pm

Hello Everyone,

I am running a web server in amazon aws and its running centos and has cpanel and whm installed (latest). The php scripts are running okay. However when I display date and time in php code I see incorrect time. The timezone for the server is correctly set (incl. date & time) but its incorrect in php ini setting.

PHP info shows loaded configuration file as /opt/cpanel/ea-php56/root/etc/php.ini. However when I edit this from whm the comment says “cPanel-generated php ini directives, do not edit” & “To make changes to this file, use the cPanel MultiPHP INI Editor”.

In cpanel multi php ini editor the system says “ini content does not exist. You may add new content.” So what to do ? If I set time zone setting in there then will system just read that setting from here or entire setting from here or what. Please help me as I am not familiar with linux environment.

Regards,
GR

Post Reply