一早,领导来电话说中心主页打不开了(让领导通知服务器有故障,我真是不称职啊),我想,又是日志满了吧。清一下,完了重启机子。以为没什么问题了,可谁知道,访问的时候提示500 Internal Server Error错误。我这什么都没改的,怎么突然间就出错了呢?
平台是:Ubuntu10.10 Server,Apache version 2.2.16,MySQL version 5.1.49,PHP 5.3.3
尝试解决办法:
步骤一:刚开始认为是Apache的问题,重装一回Apache,无效。
步骤二:放个静态页面进去,index.html。OK这个静态页面访问没有问题,再尝试访问index.php。哦,不行。
步骤三:搜“Joomla 500”,看到要弄权限(曾经一段时间,把所有的文件夹和文件都弄成777,现在看也满大胆的。)网上的要求如下
1. index.php
2. administrator/index.php and administrator/index2.php
3. administrator
4. template
5. template/(your template)
6. template/(your template)/css
7. template/(your template)/css/template.css
8. template/(your template)/css/template.css.php
依然无效。
步骤四:修改一下目录为755(find /path -type d -exec chmod 755 {} \;)sudo chmod 755 -R *,文件为644(find /path -type f -exec chmod 644 {} \;),所有者全都换成www-data(sudo chown www-data:www-data /var/www)。继续无效。
步骤四:修改一下目录为755(find /path -type d -exec chmod 755 {} \;)sudo chmod 755 -R *,文件为644(find /path -type f -exec chmod 644 {} \;),所有者全都换成www-data(sudo chown www-data:www-data /var/www)。继续无效。
步骤五:想休息了。
无意中,用FF打开看看吧,提示如下:
jtablesession::Store Failed
DB function failed with error number 144
Table './dbnic/db_session' is marked as crashed and last (automatic?) repair failed SQL=INSERT INTO `db_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` ) VALUES ( 'hlf79ks3id1mkpo0a724i32h14','1295707608','','0','1','0' )
这我高兴了。哈哈
清空、修复一下db_session,搞定。
这一天的忙活,被一个小小的错误给玩死了……
| Joomla 后台文章日期排序< 上页 | 下页 >Ubuntu Server 小版本升级 |
|---|





