PHP启动:时区数据库已损坏 [英] PHP Startup: Timezone database is corrupt

查看:419
本文介绍了PHP启动:时区数据库已损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚更新了我的CentOS服务器. PHP现在是5.2.10版本(php-5.2.10-1.el5.remi.i386),并且我已经安装了PECL Runkit. tzdata也进行了更新(tzdata-2009i-2.el5.noarch).自更新以来,Apache拒绝启动

I have juste updated my CentOS server. PHP is now at the 5.2.10 version (php-5.2.10-1.el5.remi.i386), and I have installed PECL Runkit. tzdata was updated too (tzdata-2009i-2.el5.noarch). Since the update, Apache refuse to start

这是httpd/error.log

Here is the httpd/error.log

[2009年7月8日星期三11:40:21] [注意]启用suEXEC机制(包装:/usr/sbin/suexec) [2009年7月8日星期三11:40:24] [公告]摘要:为摘要身份验证生成机密... [2009年7月8日星期三11:40:24] [注意]摘要:已完成 PHP严格标准:PHP启动:依靠系统的时区设置并不安全.请使用date.timezone设置,TZ环境变量或date_default_timezone_set()函数.如果您使用了这些方法中的任何一种,并且仍然收到此警告,则很可能您拼写了时区标识符.我们在第0行的未知"中选择了欧洲/柏林"作为"CEST/2.0/DST"

[Wed Jul 08 11:40:21 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Jul 08 11:40:24 2009] [notice] Digest: generating secret for digest authentication ... [Wed Jul 08 11:40:24 2009] [notice] Digest: done PHP Strict Standards: PHP Startup: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in Unknown on line 0

PHP致命错误:PHP启动:时区数据库已损坏-这应该永远不会发生!在第0行上的未知"中

当我删除Runkit时,一切运行正常.但是我需要这个工具.

When I remove runkit, all run fine. But I need this tools.

最诚挚的问候,塞德里克

Best regards, Cédric

推荐答案

我在不使用yum的情况下安装runkit,这很好

I install runkit without using yum, and it's fine

cvs -d :pserver:cvsread@cvs.php.net:/repository checkout pecl/runkit
2ième étape: compiler et installer:
cd pecl/runkit
pecl build package.xml
./configure
make
make install

添加一个/etc/php.d/runkit.ini

add a /etc/php.d/runkit.ini

extension=runkit.so

将此内容添加到php.ini中

add this in php.ini

[runkit]
runkit.internal_override = On

这篇关于PHP启动:时区数据库已损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆