简体   繁体   English

如何在PHP 5,Fedora服务器上启用mbstring扩展

[英]How do I enable mbstring extension on PHP 5, Fedora server

I need to add the mbstring extension to an install of PHP 5.2.6 on Apache/2.2.11 (Fedora). 我需要在Apache / 2.2.11(Fedora)上添加mbstring扩展到PHP 5.2.6的安装。 We have dynamic extensions enabled so I really think all I need is the .so file and .ini files, correct? 我们启用了动态扩展,所以我认为我需要的是.so文件和.ini文件,对吗? Can I simply drop these files in and make it work or do I have to recompile PHP? 我可以简单地删除这些文件并使其工作,还是我必须重新编译PHP? If it's simply upload and go, where can I get the files I need? 如果它只是上传和去,我在哪里可以得到我需要的文件?

Try yum install php-mbstring . 试试yum install php-mbstring You may then need to restart apache, eg /sbin/service httpd restart . 然后,您可能需要重新启动apache,例如/sbin/service httpd restart

You can also use yum info "php-*" to find a list of other php packages available. 您还可以使用yum info "php-*"查找其他可用的php包列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM