|
本帖最后由 kyoiiyb 于 2014-6-14 08:32 编辑
WNDR4300以及买了很久了.
最近开始研究部署web服务上去..
其中碰到大量问题. 也基本解决了. 目前还有一个问题完全不知道怎么弄了.
zoneinfo的安装问题. 没装好会出现下面问题
php-cgi运行 date()函数会报错.
错误大概如下
- <P>Warning: date(): 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. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.</P>
- <P> </P>
- <P>Fatal error: date(): Timezone database is corrupt - this should *never* happen!</P>
复制代码 直接找这个错误大概是Timezone定义问题.
但实际上php.ini中的date.timezone已经定义.date执行前也执行了date_default_timezone_set函数定义.
最后发现date_default_timezone_set函数无论定义什么时区永远返回false. 结果每次都当UTC处理了.
当然是有安装zoneinfo
opkg install zoneinfo-core zoneinfo-asia
关键是这里了. 毫无效果..
唯一的考虑就是路径问题. optware安装完的程序基本100%路径很奇怪. 如果需要配置路径的基本要从 /usr 改成 /opt/usr 等等...
有没有大神知道怎么解决..
另外有需要的话过会把Atheros CPU的直接在jffs上optware安装到lighttpd mysql php的安装配置教程也发布一下.
其实途中问题很多..各大网站教程也基本没写明.. 如果只是装好还不麻烦. 但真正要跑DZ什么的还些点配置要弄. 当然目前不能用date函数也没意义.. -_-!!
(偶自己先用system("date xxxxx")的方式临时替代了.)
|
|