No announcement yet.

PHP Selector --> Show PHP Settings (php.ini) - Please allow customer to choose "date.timezone" value

  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP Selector --> Show PHP Settings (php.ini) - Please allow customer to choose "date.timezone" value


    For some reason, we are seeing more and more customers with this error:

    > Warning: date_default_timezone_get(): It is not safe to rely on the systems timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.

    Using the "Select PHP Version" and "Show PHP Settings" page in cpanel, it is possible for customer to modify several common PHP.INI options. Is it possible you could add the "date.timezone" value to this list of options? This way, it is very easy for the customer to set this option as needed.

    (Or, can you add this setting as already set to the php default builds that are included with PHP Selector?)

  • #2
    You can fix this by editing each PHP versions conf file.


    Then just specify the default timezone.

    Example: date.timezone = "America/Chicago"

    You can also give your customer the ability to modify it in the PHP selector option.

    You would modify: /etc/cl.selector/php.conf

    Directive = date.timezone
    Default = America/Chicago
    Type = Value
    Comment = Change your PHPs timezone


    • #3
      After we upgraded from mysql 5.6 to Mariadb 10.0 and proceeded to rebuild php, the "Show php setting" function in each user did not work.

      Please just help us solve this case.


      • #4

        Please submit a ticket to, our techs will check the issue in place.