为什么 joomla 2.5 会话表损坏?
我正在使用 Joomla 运行一个网站!2.5.9 7 个月.一切都很顺利,直到本周.周一和今天(周五)网站无法运行,因为****_session
表已损坏.我没有机会查看有关错误的日志.
I am running a website using Joomla! 2.5.9 for 7 months. Everything was going fine until this week. On monday and today(Friday) web site fails to run because of ****_session
table has been broken down. I don't have a chance to take a look at logs about what is wrong.
不管怎样,我周一修好了桌子,直到今天一切都很正常.今天它重复了同样的错误.然后我又修复了.不想桌子坏了不想再修.
Anyway, I repaired the table on Monday and everything was normal until today. Today it repeated the same error. Then I repaired again. I don't want the table to be broken and don't want to repair it again.
我想知道 Joomla! 是否存在漏洞!或者服务器端有其他东西.
I want to know if there is a vulnerability about Joomla! or there is something else on server side.
推荐答案
我制作了一个页面,可以在崩溃时手动修复表格.
I have made a page which repairs the table manually when crashed.
<?php
//file = repair/index.php
include '../configuration.php'; //has JConfig class
$cfg = new JConfig();
$mysqli = new mysqli($cfg->host, $cfg->user, $cfg->password, $cfg->db);
if($mysqli->query('REPAIR TABLE prefix_session'))
echo 'Hey!';
else
echo 'An error occured call zkanoca';
?>
当我调用 http://example.com/repair 时就可以了.
when I call http://example.com/repair it is OK.
相关文章