解决方案 »

  1.   

    重新编译PHP模块,添加mbstring模块:
    configure --enable-mbstring [其它需要的模块]
      

  2.   

    看看php.ini中有没有开启mbstring扩展
      

  3.   

    我重新编译下就好了。。为什么我每次开启其他的拓展都要重新 编译。能帮我看看吗? phpinfo地址是:http://www.4acms.com/test.php
    里面显示的Configuration File (php.ini) Path /usr/php-5.5.14/lib。。是不是要把php.ini放在这个目录里。我每次都是放在这个目录。可是每次开启拓展都没有效果不知道是为什么?
      

  4.   

    把php中要用到的扩展都编译进去,就不用每次重新编译了:
    ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap --without-pear --with-zlib --enable-pdo --with-pdo-mysql --with-mysql 
    PHP常用扩展选项