There is no timezone specified in domain's phpinfo

Created:

2017-01-07 11:07:30 UTC

Modified:

2017-08-08 13:46:17 UTC

0

Was this article helpful?


Have more questions?

Submit a request

There is no timezone specified in domain's phpinfo

Issue Symptoms

There is no timezone specified in the output of phpinfo() function for a domain:

 

Conditions

Incorrect php.ini configuration of PHP handler.

Resolution

  1. Edit php.ini file specified under Loaded Configuration File section in phpinfo() output.

    For example: Loaded Configuration File /opt/plesk/php/7.0/etc/php.ini

  2. Set correct value at date.timezone as in example below:

    # grep 'date.timezone' /opt/plesk/php/7.0/etc/php.ini
    /opt/plesk/php/7.0/etc/php.ini:date.timezone = Asia/Singapore
  3. Restart appropriate PHP handler:

    # service plesk-php70-fpm restart
    
Have more questions? Submit a request
Please sign in to leave a comment.