PHP函数不可用-可能会丢失APACHE编译配置 [英] PHP function unavailable - may be missed APACHE compile config
问题描述
我刚刚从共享主机环境切换到专用服务,并且在测试我的代码时,我发现某些PHP函数不可用:
I have just switched from a shared hosting environment to a dedicated service and whilst testing my code I am finding that some PHP functions aren't available:
Fatal error: Call to undefined function mb_strtoupper()
我具有WHM的完全访问权限,并且可以使用许多选项重新编译PHP.对此感到陌生,我觉得最好将我不熟悉的选项保留为默认设置.
I have full access to WHM and I can recompile PHP with a bunch of options. Being new to this, I felt it be better to leave the options I'm not familiar with as their default setting.
PHPINFO()指出我正在运行版本5.2.9和APACHE 2.2.
PHPINFO() states I am running version 5.2.9 and APACHE 2.2.
我是否错过了配置APACHE的选项-是否需要打开某些东西才能完全访问PHP函数?
Have I missed an option in configuring APACHE - is there something I need to switch on to gain full access to PHP functions?
推荐答案
这是在 serverfault.com
但是,对于您的版本,您可能只需要激活mb扩展名
however, regarding your version you moust likely just have to activate mb extensions
还要确保您的php是用--enable-mbstring
also make sure your php is compiled with --enable-mbstring
这篇关于PHP函数不可用-可能会丢失APACHE编译配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!