Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Hello,

    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?)
    Thanks!

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

    /opt/alt/php52/etc/php.ini
    /opt/alt/php53/etc/php.ini
    /opt/alt/php54/etc/php.ini
    /opt/alt/php55/etc/php.ini

    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

    Comment


    • #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.

      Comment


      • #4
        Hello,

        Please submit a ticket to https://cloudlinux.zendesk.com, our techs will check the issue in place.

        Comment

        Working...
        X