Skip to content
Want to get Premium Web Hosting only at 45₹/Month Signup Now!

How to Change the Default date.timezone Parameter for a Specific PHP Version in Plesk

If you want to change the date.timezone parameter globally for all domains using a specific PHP version, follow these steps:


Step 1: Log In to Plesk

  • Access your Plesk control panel with your username and password.

Step 2: Navigate to PHP Settings

  • Go to Tools & Settings from the left-hand navigation menu under Server Management.
  • Click on PHP Settings under the General Settings section.

Step 3: Select the PHP Version

  • In the PHP Settings page, locate and click on the PHP version you want to modify.
    For example: PHP 8.2.25 FastCGI application.

Step 4: Open the PHP Configuration File (php.ini)

  • In the PHP configuration page, switch to the php.ini tab.
  • Locate the date.timezone parameter.
date.timezone = Europe/London

Step 5: Save the Changes

  • Click the OK button to save your changes.
  • Plesk will automatically restart all necessary services, applying the changes to all domains using this PHP handler.

Note:

If you need to set the timezone for a specific domain only, you can do so via the domain’s PHP Settings (as explained in here).


Conclusion

This method updates the default date.timezone parameter for a particular PHP version globally, ensuring consistency across all domains assigned to this PHP handler.

Was this article helpful?
YesNo
Back To Top