前几天安装了一个bugfree,但是测试人员在用的时候发现保存bug的时候直接报500了,然后我看了下apache的错误日志,内容是:

[Tue Aug 12 14:42:34 2014] [error] [client 192.168.30.67] PHP Fatal error:  Call to undefined function mb_detect_encoding() in /var/www/html/bugfree/protected/extensions/simple_html_dom.php on line 988, referer: http://192.168.30.30/bugfree/index.php/info/edit?type=result&action=opened&case_id=1


经过发现原来是少安装了两个php模块:

php-mcrypt 和  php-mbstring

于是乎安装吧:

yum -y install php-mbstring

yum -y install php-mcrypt

安装好后重启apache,OK,好了