sudo apt-get install php5.6-mbstring sudo service apache2 restart5.6为你自己的phpversion在/etc下有php,自己修改 参考:https://stackoverflow.com/questions/17204437/fatal-error-call-to-undefined-function-mb-detect-encoding 这个是ubuntu环境下的