找到一个原因是因为同时使用了APC和ZEND进行加速,导致apache占用CPU急剧增加而致服务器资源耗尽,取消该项目之后,居然出现莫名死机,原因不明,只是proftpd的CPU占用飚升,可能是校外下载的开始多了起来,当然也有可能是DOS。
Month: May 2005
IPB rewrite rule
IPB rewrite rule in class_display.php
//—————–rewrite
function _replace_mod_rewrite(&$rewrite_srting)
{
global $ibforums;
//return $rewrite_srting;
$urlin = array(
“‘index.php\?act=idx’”,
“‘index.php\?showforum=([0-9]*)’”,
“‘index.php\?showtopic=([0-9]*)’”,
“‘index.php\?showuser=([0-9]*)’”,
“‘index.php\?showtopic=([0-9]*)&view=getnewpost’”,
“‘index.php\?showtopic=([0-9]*)\&st=([0-9]*)’”,
);
$urlout = array(
“”,
“forum\\1.html”,
“topic\\1.html”,
“user\\1.html”,
“latest\\1.html”,
“st/\\1/”,
);
$rewrite_srting = preg_replace($urlin, $urlout, $rewrite_srting);
return $rewrite_srting;
}
//——————-rewrite end