The mbstring PHP extension was not found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • usafshah
    New Member
    • Nov 2006
    • 104

    The mbstring PHP extension was not found

    i'm using phpmyadmin on Fedora core 6, everything seems to be fine but the only thing is when i open phpmyadmin at the bottom it says like

    The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.


    i opened the file php.ini and found ;extension=php_ mbstring.dll and removed the semicolon, restarted apache but still didn't work. i guess this dll only related with windows apache, kaz i didn't find this file in linux.


    any solution ?
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by usafshah
    i'm using phpmyadmin on Fedora core 6, everything seems to be fine but the only thing is when i open phpmyadmin at the bottom it says like

    The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.


    i opened the file php.ini and found ;extension=php_ mbstring.dll and removed the semicolon, restarted apache but still didn't work. i guess this dll only related with windows apache, kaz i didn't find this file in linux.


    any solution ?
    Is php_mbstring.dl l in the correct directory as specified by your php.ini file?

    Comment

    • usafshah
      New Member
      • Nov 2006
      • 104

      #3
      but i didn't find any php_mbstring.dl l file as i searched throug:

      find / -name php_mbstring.dl l

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Originally posted by usafshah
        but i didn't find any php_mbstring.dl l file as i searched throug:

        find / -name php_mbstring.dl l
        Sorry, I forgot that you were using Fedora.

        Could you post the mbstring related section of your php.ini file for us?

        Comment

        • usafshah
          New Member
          • Nov 2006
          • 104

          #5
          [PHP]# cat /usr/local/php/lib/php.ini | grep mbstring

          extension=php_m bstring.dll
          [mbstring]
          ;mbstring.langu age = Japanese
          ;mbstring.inter nal_encoding = EUC-JP
          ;mbstring.http_ input = auto
          ;mbstring.http_ output = SJIS
          ; mbstring.intern al_encoding setting. Input chars are
          ;mbstring.encod ing_translation = Off
          ;mbstring.detec t_order = auto
          ;mbstring.subst itute_character = none;
          ; overload(replac e) single byte functions by mbstring functions.
          ;mbstring.func_ overload = 0
          ;mbstring.stric t_encoding = Off
          ; With mbstring support this will automatically be converted into the encoding
          ; given by corresponding encode setting. When empty mbstring.intern al_encoding
          [/PHP]

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            Try running this:

            Code:
            yum install php-mbstring

            Comment

            • usafshah
              New Member
              • Nov 2006
              • 104

              #7
              [PHP][root@linuxserve r tickets]# yum install php-mbstring
              Loading "installonl yn" plugin
              Setting up Install Process
              Setting up repositories
              Reading repository metadata in from local files
              Parsing package install arguments
              Resolving Dependencies
              --> Populating transaction set with selected packages. Please wait.
              ---> Downloading header for php-mbstring to pack into transaction set.
              php-mbstring-5.1.6-3.4.fc 100% |============== ===========| 16 kB 00:00
              ---> Package php-mbstring.i386 0:5.1.6-3.4.fc6 set to be updated
              --> Running transaction check

              Dependencies Resolved

              =============== =============== =============== =============== =============== ==
              Package Arch Version Repository Size
              =============== =============== =============== =============== =============== ==
              Installing:
              php-mbstring i386 5.1.6-3.4.fc6 updates 967 k

              Transaction Summary
              =============== =============== =============== =============== =============== ==
              Install 1 Package(s)
              Update 0 Package(s)
              Remove 0 Package(s)

              Total download size: 967 k
              Is this ok [y/N]: y
              Downloading Packages:
              (1/1): php-mbstring-5.1.6-3.4.fc6.i386.rp m 967 kB 00:04
              Running Transaction Test
              Finished Transaction Test
              Transaction Test Succeeded
              Running Transaction
              Installing: php-mbstring ############### ########## [1/1]

              Installed: php-mbstring.i386 0:5.1.6-3.4.fc6
              Complete!
              [root@linuxserve r tickets]# service httpd restart
              Stopping httpd: [ OK ]
              Starting httpd: [ OK ]
              [root@linuxserve r tickets]#
              [/PHP]


              still same error

              Comment

              • usafshah
                New Member
                • Nov 2006
                • 104

                #8
                here is the output of yum search php-mbstring



                [PHP][root@linuxserve r tickets]# yum search php-mbstring
                Loading "installonl yn" plugin
                Setting up repositories
                Reading repository metadata in from local files



                php-mbstring.i386 5.1.6-3 core
                Matched from:
                php-mbstring
                The php-mbstring package contains a dynamic shared object that will add
                support for multi-byte string handling to PHP.



                horde-enhanced.noarch 3.1.3-11.fc6 extras
                Matched from:
                A collection of other external packages that extend the horde framework,
                including:
                php-imap
                php-mbstring
                php-mcrypt
                php-pecl-Fileinfo
                php-pear-Auth-SASL
                php-pear-Date
                php-pear-HTTP-Request
                php-pear-Mail
                php-pear-Net-Socket
                php-pear-Net-SMTP



                php-mbstring.i386 5.1.6-3.3.fc6 updates
                Matched from:
                php-mbstring
                The php-mbstring package contains a dynamic shared object that will add
                support for multi-byte string handling to PHP.



                php-mbstring.i386 5.1.6-3.4.fc6 updates
                Matched from:
                php-mbstring
                The php-mbstring package contains a dynamic shared object that will add
                support for multi-byte string handling to PHP.



                php-mbstring.i386 5.1.6-3.4.fc6 installed
                Matched from:
                php-mbstring
                The php-mbstring package contains a dynamic shared object that will add
                support for multi-byte string handling to PHP.

                [root@linuxserve r tickets]#
                [/PHP]

                Comment

                • Motoma
                  Recognized Expert Specialist
                  • Jan 2007
                  • 3236

                  #9
                  Uncomment the mbstring related lines in php.ini and set them to the character set you need.

                  Comment

                  Working...