你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu 安装 eyeOS

[日期:2011-10-08] 来源:Linux社区  作者:htttw [字体:大 中 小]
然后修改整个eyeos根目录的权限:
chmod 777 -R eyeos-2.5/

然后在浏览器中输入:http://localhost/eyeos-2.5/index.php出现了上述提到的问题:There is an error in this eyeOS installation, please contact the system administrator

打开 eyeos-2.5/index.php,找到“There is an error in this eyeOS installation, please contact the system administrato”字样,发现它是在一个try-catch块内的,在后面加上echo $e->getMessage();

语句,然后再运行的时候就会显示出错误:

[function.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 'Asia/Chongqing' for 'CST/8.0/no DST' instead

解决办法是:

找到php下的php.ini文件(找不到可以find -name php.ini,我的是在/usr/local/php5/lib/php.ini),查找 ”;date.timezone = “字样,然后去掉前面的分号(即取消注释),改为 date.timezone = Asia/Shanghai,然后在eyeOS的根目录下的index.php打开 eyeos-2.5/index.php,在其中的中的php代码内加入“date_default_timezone_set('Asia/Shanghai');”字样(我加在了整个文件的第二行,第一行是<?php)

然后在浏览器中输入:http://localhost/eyeos-2.5/index.php 就可以啦!

贴个图:



不过点“Create an account” 就出错了,如下(至今不知如何解决???):

linux
相关资讯       Ubuntu服务器  eyeOS 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款