Nginx PHP mbstring

Nginx PHP mbstring

我使用本教程在我的 Centos 服务器上安装 nginxhttp://moon.mastipoint.net/research/nginx-php-fpm-mysql-on-centos.html。我已经运行了所有程序,但是我不知道如何安装 php mbstring 扩展。

我已尝试yum install php-mbstring.i386但它返回以下错误:

--> Running transaction check
---> Package php-mbstring.i386 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-mbstring
--> Finished Dependency Resolution
php-mbstring-5.1.6-27.el5_5.3.i386 from base has depsolving problems
  --> Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-mbstring-5.1.6-27.el5_5.3.i386 (base)
Error: Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-mbstring-5.1.6-27.el5_5.3.i386 (base)

谢谢。

答案1

该博客文章建议的脚本将安装Webtaticrepo 并将其用于其 PHP 包。尝试

yum --enablerepo=webtatic install php-mbstring

相关内容