PHP Selector --> Show PHP Settings (php.ini) - Please allow customer to choose "date.timezone" value
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Host Provider
  2. Friday, 08 November 2013
  3.  Subscribe via email
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 system's 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!
Rate this post:
  1. 07.12.2013 12:12:44
  2. # 1
BigScoots Accepted Answer
Posts: 1
Joined: 07.12.2013
0
Votes
Undo
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 PHP's timezone
  1. 13.08.2018 04:08:36
  2. # 2
Tran Van Tuan Accepted Answer
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.
Attachments (1)
  1. 13.08.2018 12:08:22
  2. # 3
Vladimir Accepted Answer
Posts: 108
Joined: 04.07.2017
0
Votes
Undo
Hello,

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


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.