How to set the timezone for PHP via cPanel

Should you discover that the time showing incorrectly in scripts, applications, or services on your server, you may find that resetting the timezone resolves the issue. Traditionally, the timezone is set in the php.ini configuration file. However, we do not allow direct changes to php.ini on HostPapa servers. PHP configuration changes can be made using My cPanel.

Log in to your HostPapa Dashboard and select My cPanel from the top navigation menu. Scroll down to the Software section and click Select PHP Version.

cPanel

Now click Switch to PHP Options.

PHP Options

Click the value next to date.timezone to edit the timezone setting. You can view a full list of alternative timezones from around the world at this PHP support page: http://www.php.net/manual/en/timezones.php

Timezone setting

Click Apply to save your setting.

For further questions, or if you need help, please open a support ticket from your HostPapa Dashboard. Follow this link to learn how.

Was this article helpful?

Related Articles

Leave A Comment?