
后台
chenhengqi
这个作者很懒,什么都没留下…
展开
-
如何自定义网站404页面以及网站logo
自定义404页面,在网站根目录下建立一个名为.htaccess的文本文件,在其中写入字符串"ErrorDocument 404 /404.htm",其中404.htm就由你自定义啦。要注意的是,扩展名只能是.htm而不能是.html或在.php等。设置网站logo,有两种方式,一种就是在网站根目录下放置一个名为favicon.ico的16*16图标文件(只能是16*16,其他尺寸试过了,不行)原创 2013-07-31 21:22:23 · 679 阅读 · 0 评论 -
It is not safe to rely on the system’s timezone settings
在 Cent OS 下,使用 php 的 date() 函数产生警告:It is not safe to rely on the system’s timezone settings解决方案是修改php.inidate.timezone = PRC或者date.timezone = "Asia/Shanghai"好吧,这些方法都来自互联网,可是最最关键的一点是修改完后要重启原创 2013-10-09 18:15:46 · 960 阅读 · 0 评论 -
phpMyAdmin 目录权限
在 Cent OS 下,为了方便工作,把 phpMyAdmin 目录的权限全打开,结果错误发生了:Wrong permissions on configuration file, should not be world writable!把目录权限修改为755后就可以了。原创 2013-10-09 23:58:22 · 803 阅读 · 0 评论 -
Gii无法使用
在 Cent OS 上,各种蛋疼的问题一大把,连个 Gii 都可能用不了,访问出现了403 错误:You are not allowed to access this page.参考了这里:http://www.yiiframework.com/forum/index.php/topic/13497-gii-403-error/page__p__66300__hl__gii+403原创 2013-10-10 00:09:10 · 1223 阅读 · 0 评论