Cancel Preloader
hosting image

How to set the timezone for PHP via cPanel

Today we are going to teach how to set the timezone for PHP via cPanel with a simple tutorial.

Set the timezone for PHP via cPanel

From the “Software” module, click on “MultiPHP INI Editor”.

Once inside “MultiPHP INI Editor” and to change the timezone of PHP, you have to follow the next steps:

  • RED ARROW: Select the domain or subdomain for which you want to change the PHP time zone.
  • BLUE ARROW: Select “Mode Editor”.
  • GREEN ARROW: Add the following record: date.timezone=Europe/Madrid

To select the timezone of your country, enter the NEXT LINK, find the desired time zone and replace Europe/Madrid with the code provided by the PHP website.

Leave a Reply

Abrir WhatsApp
¿Ayuda Soporte Premium?
Powered by