Setting default timezone does not work despite timezone being valid

前端 未结 2 1276
难免孤独
难免孤独 2020-12-10 08:03

I\'m geting when I just do phpinfo()

Warning: phpinfo(): It is not safe to rely on the system\'s timezone settings. You are required to use t

2条回答
  •  执笔经年
    2020-12-10 08:11

    To extend futureboxlab's solution, you may encounter another error regarding the 'make' command if you don't have make installed. In that case you'll just need to run

    #yum install make
    

    then, once again (third time's the charm)

    #pecl install timezonedb
    

提交回复
热议问题