Search Our Database

How to Change The PHP Timezone For A Domain

Last updated on |

Introduction

Setting the correct PHP timezone is important to ensure that server-side processes—such as log timestamps, cron jobs, and time-based functions—operate according to your local time. In cPanel, this can be done easily using the MultiPHP INI Editor.

Prerequisites

  • Access to cPanel: Ensure you have a valid cPanel account with login credentials.
  • Basic cPanel Knowledge: Familiarity with navigating the cPanel interface is recommended.

Step-by-Step Guide

Step 1: Log in to cPanel
  • Open your browser and go to:
    https://yourdomain.com/cpanel
  • Enter your username and password to log in.


Step 2: Set PHP Timezone in MultiPHP INI Editor
  • In the cPanel dashboard, use the search bar and look for MultiPHP INI Editor.
  • Click on it to open the configuration interface.


MultiPHP INI Editor

  • Click on Editor Mode.


Editor Mode

  • Select your domain from the dropdown menu.
  • Scroll down and add the following line to set your desired timezone:
date.timezone = Asia/Kuala_Lumpur


Timezone Example

  • Click Save to apply the changes.

Conclusion

Setting the correct timezone helps keep your application logs and time-related features consistent with your local time. The MultiPHP INI Editor in cPanel provides an easy way to apply this setting per domain.

If you need further assistance, please contact our support team at support@ipserverone.com.