Introduction
Open iT PHP pages use the PHP time-zone setting defined in the php.ini configuration file. If the configured time zone does not match the machine time zone, timestamps shown in Status Messages or other PHP-based pages may be incorrect.
Configuring PHP Time Zone
Follow this procedure when Open iT PHP pages display timestamps that do not match the server or machine time because PHP is configured with a different time zone.
- Windows
- Unix
Step 1: Open the PHP directory
-
Go to the PHP directory.
By default, this is located at:
C:\Program Files\OpeniT\Core\External\PHP\.
Step 2: Configure the php.ini file
-
Locate the
php.inifile and open it using your preferred text editor. -
Locate the
date.timezonesetting and change its value to the time zone that matches the server's location.php.ini[PHP]
engine = On
memory_limit = -1
display_errors=false
expose_php=Off
date.timezone = "US/Central"
max_execution_time = 1500
post_max_size = 2048M
upload_max_filesize = 2048M
short_open_tag = OnFor example, for a server located in the Philippines, set
date.timezonetoAsia/Manila.Example: php.ini[PHP]
engine = On
memory_limit = -1
display_errors=false
expose_php=Off
date.timezone = "Asia/Manila"
max_execution_time = 1500
post_max_size = 2048M
upload_max_filesize = 2048M
short_open_tag = OnnoteFor a list of valid timezone values, refer to the PHP List of Supported Timezones.
-
Save the file.
Step 3: Restart the Open iT service
-
Open the Task Manager.
-
Go to the Services tab.
-
Restart the OpeniTReporting.
Step 1: Open the openit directory
-
Go to the openit directory.
By default, this is located at:
/etc/opt/openit/.
Step 2: Configure the php.ini file
-
Locate the
php.inifile and open it using your preferred text editor. -
Locate the
date.timezonesetting and change its value to the time zone that matches the server's location.php.ini[PHP]
engine = On
memory_limit = -1
display_errors=false
expose_php=Off
date.timezone = "US/Central"
max_execution_time = 1500
post_max_size = 2048M
upload_max_filesize = 2048M
short_open_tag = OnFor example, for a server located in the Philippines, set
date.timezonetoAsia/Manila.Example: php.ini[PHP]
engine = On
memory_limit = -1
display_errors=false
expose_php=Off
date.timezone = "Asia/Manila"
max_execution_time = 1500
post_max_size = 2048M
upload_max_filesize = 2048M
short_open_tag = OnnoteFor a list of valid timezone values, refer to the PHP List of Supported Timezones.
-
Save the file.
Step 3: Restart the Open iT service
Go to the bin directory, which is by default in /opt/openit/bin, and run the following command:
Command Syntax
./openit-httpd restart