Mbstring php extension was

Содержание
  1. How to install PHP `mbstring` extension in Ubuntu?
  2. You must log in to answer this question.
  3. Linked
  4. Related
  5. Hot Network Questions
  6. Subscribe to RSS
  7. Ошибка «The mbstring PHP extension was not found»
  8. 2 Ответ от Lokki 2006-06-05 12:04:39
  9. Re: Ошибка «The mbstring PHP extension was not found»
  10. 3 Ответ от A-men 2006-07-25 16:26:14
  11. Re: Ошибка «The mbstring PHP extension was not found»
  12. 4 Ответ от apata 2006-07-26 10:13:53
  13. Re: Ошибка «The mbstring PHP extension was not found»
  14. 5 Ответ от A-men 2006-07-26 10:21:12 (изменено: A-men, 2006-07-26 10:22:48)
  15. Re: Ошибка «The mbstring PHP extension was not found»
  16. 6 Ответ от apata 2006-08-01 15:10:24
  17. Re: Ошибка «The mbstring PHP extension was not found»
  18. 7 Ответ от apata 2006-08-01 15:13:32
  19. Re: Ошибка «The mbstring PHP extension was not found»
  20. 8 Ответ от Nelapsi 2006-09-02 16:55:13
  21. Re: Ошибка «The mbstring PHP extension was not found»
  22. 9 Ответ от Nastena 2007-02-13 12:21:56
  23. Re: Ошибка «The mbstring PHP extension was not found»
  24. 10 Ответ от Lokki 2007-02-13 12:35:53
  25. Re: Ошибка «The mbstring PHP extension was not found»
  26. 11 Ответ от Nastena 2007-02-13 14:33:38
  27. Re: Ошибка «The mbstring PHP extension was not found»
  28. 12 Ответ от Nastena 2007-02-13 14:45:10
  29. Re: Ошибка «The mbstring PHP extension was not found»
  30. 13 Ответ от Lokki 2007-02-13 15:42:10
  31. Re: Ошибка «The mbstring PHP extension was not found»
  32. 14 Ответ от DrHyder 2007-03-05 12:55:39
  33. Re: Ошибка «The mbstring PHP extension was not found»
  34. 15 Ответ от Hanut 2007-03-05 22:41:28
  35. Re: Ошибка «The mbstring PHP extension was not found»
  36. 16 Ответ от DrHyder 2007-03-06 08:24:32
  37. Re: Ошибка «The mbstring PHP extension was not found»
  38. 17 Ответ от Hanut 2007-03-06 13:54:11
  39. Re: Ошибка «The mbstring PHP extension was not found»

How to install PHP `mbstring` extension in Ubuntu?

EDIT: Dylan Pierce has confirmed that you can already install some PHP 7.2 extensions in the same way you would for PHP 5. For mbstring in particular, you can execute:

sudo apt-get install php7.2-mbstring 

To complement sparkmood’s answer, this now works for PHP 7.2 if you already imported ondrej’s PPA for it.

sudo apt-get install libapache2-mod-php7.2 

Don’t forget, either PHP 7 is available through ubuntu’s official repositories or you will need an external PPA.

I’ve figured it out: sudo apt-get install php7.0-mbstring Also works for other php extensions you might need like: sudo apt-get install php7.0-zip sudo apt-get install php7.0-dom I really like how brainless it is to install/activate these modules. I just wish I didn’t have to go on an internet wide goose chase for them.

I believe that as soon as version 7 covers all of the old 5 libraries, you won’t have to write 7 to get the latest and greatest. Not doing so would probably break build scripts or cause unexpected behavior.

After installed in Ubuntu 16.04 with LAMP is needed to restart Apache2 service sudo service apache2 restart

sudo apt-get install php-mbstring 

I have installed mbstring in php7.0-fpm (7.0.15-0ubuntu0.16.04.4)

This is correct for Debian Stretch. No need to add the version number. Internally a sub-package with version number is loaded.

This is vastly superior to specifying the version on the cli as it seems to adapt to the installed version.

My experience using the sury package repo on debian 9 (stretch), I had to specify the 7.2 version, because php-mbstring is only supported until php 7.2. By not using the php prefix version, it kept saying it doesn’t exist since by php7.4 (the latest release of php as of today). Make sure to install only php7.2 and not above or it might not work as expected.

Читайте также:  Дата как условие php

mbstring is built in libapache2-mod-php5 package, so you can use this command for installing :

sudo apt-get install libapache2-mod-php5 
 dba dom ereg exif fileinfo filter ftp gettext hash iconv json libxml mbstring mhash openssl pcre Phar posix Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter zip zlib. 

I have already installed apache2 on my server now if I install «libapache2-mod-php5» on my server will it any problem.

This is poor advice. While some systems have Apache2 installed, many others may not. Executing this command risks breaking otherwise working systems. (Yes, I know I’m years late, but maybe it’ll help someone not try this fix.)

If you’re using php 5.6

Install php 5.6 mbstring package:

sudo apt-get install php5.6-mbstring 

Then add the following line to the bottom of your php.ini file:

sudo service apache2 restart 

To find your php.ini file, create a file and insert the following line:

Then open with a browser to see where your php.ini file is located.

In my case it was already installed, but I just needed to do phpenmod mbstring , followed by apachectl graceful .

For Ubuntu 14.04 extension mbstring should be built in.

sudo apt-get install php7.0-mbstring 

It requires adding another source for apt for install in 18.04..

Download Page for php7.2-mbstring_7.2.7-0ubuntu0.18.04.2_amd64.deb on AMD64 machines

If you are running Ubuntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website.

You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

+1 I had to use this solution as well for my Google Cloud Ubuntu 18.04 LTS install before I could use apt-get for the 7.2 mbstring extension, then I was able to use the accepted answer.

Since the mcrypt itself (the package that php-mcrypt uses to do its crypt stuff) is no longer supported after PHP7.2, As of today, to install it specifically for php7.2, you’ll need to make sure when installing to prefix all php7.2 extensions with php7.2- .

While initially the commands suggested by others to just install it work, when using it with an framework version that requires mcrypt (such as Laravel4.2), it will require you to install mcrypt using pecl. Follow the fix here

You must log in to answer this question.

Linked

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.21.43541

Читайте также:  Css с новым годом

Ubuntu and the circle of friends logo are trade marks of Canonical Limited and are used under licence.

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

Ошибка «The mbstring PHP extension was not found»

Доброго времени суток! подскажите, чтобы это значило: «The mbstring PHP extension was not found and you seem to be using multibyte charset. Without mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results» и как с этим бороться и надо ли с этим бороться?

2 Ответ от Lokki 2006-06-05 12:04:39

Re: Ошибка «The mbstring PHP extension was not found»

apata
Буквально тебе сообщается следующее: «php-расширение mbstring не было обнаружено, в то время как используется мультибайтная кодировка. Без расширения mbstring phpMyAdmin не сможет разбивать строки корректно, что может привести к непредсказуемым результатам.»

phpMyAdmin не имеет встроенных функций для работы с мультибайтными кодировками, и использует для этих целей php-расширение mbstring. Т.к. мультибайтные кодировки сейчас используются повсеместно, то для корректной работы phpMyAdmin наличие данного расширения весьма желательно.

Без данного расширения phpMyAdmin работать будет, но не гарантированно, что корректно.

Если используется локальный сервер, то можно установить данное расширение вручную. Как это сделать написано на приведенной мной странице.

Если данная ситуация на удаленном сервере — тогда попросите хостера чтобы он установил данное расширение. Посмотреть наверняка, установлено ли данное расширение или нет — можно с помощью phpinfo().

3 Ответ от A-men 2006-07-25 16:26:14

Re: Ошибка «The mbstring PHP extension was not found»

Вдруг apata с английским не дружен.

apata
Экстеншен наверняка лежит в папке «ext».
Сними просто комментарий напротив extension=php_mbstring.dll в php.ini

4 Ответ от apata 2006-07-26 10:13:53

Re: Ошибка «The mbstring PHP extension was not found»

а у меня в php.ini коментарий снят

5 Ответ от A-men 2006-07-26 10:21:12 (изменено: A-men, 2006-07-26 10:22:48)

Re: Ошибка «The mbstring PHP extension was not found»

а у меня в php.ini коментарий снят

А версия PhP какая? Смотрела в папку ext?

6 Ответ от apata 2006-08-01 15:10:24

Re: Ошибка «The mbstring PHP extension was not found»

PHP Version 5.1.2 в папке ext все на месте, странно.

7 Ответ от apata 2006-08-01 15:13:32

Re: Ошибка «The mbstring PHP extension was not found»

все заработало, вроде особо ничего не меняла, решала другую проблему и «О чудо!»
всем спасибо за участие!

8 Ответ от Nelapsi 2006-09-02 16:55:13

Re: Ошибка «The mbstring PHP extension was not found»

Спасибо Админу за ответ, все работает, извеняюсь что создал тему не посмотрев о наличии такой!

9 Ответ от Nastena 2007-02-13 12:21:56

Re: Ошибка «The mbstring PHP extension was not found»

Доброго времени суток. Вот у меня таже проблема случилась.
1) Комментарий со строчки extension=php_mbstring.dll убран
2) в папке ext все на месте
PHP 5/1/6
MySQL — 4.1.16-nt
phpMyAdmin — 2.8.0.2
И не случается у меня никакой счсастливой случайности, чтобы все заработало. Что еще можно посмотреть? Заранее спасибо

10 Ответ от Lokki 2007-02-13 12:35:53

Re: Ошибка «The mbstring PHP extension was not found»

Не всегда присутствие файла библиотеки в директории гарантирует работопособность. Важно, чтобы php «знал путь» до этой директории.

Читайте также:  Php enable disable buttons

11 Ответ от Nastena 2007-02-13 14:33:38

Re: Ошибка «The mbstring PHP extension was not found»

Ой Спасибо огроменное Не поняла что конкретно помогло Но заработало

12 Ответ от Nastena 2007-02-13 14:45:10

Re: Ошибка «The mbstring PHP extension was not found»

Особенно вот это в начале скрипта помогло $sql1=mysql_query(«SET CHARSET cp1251»,$db);

13 Ответ от Lokki 2007-02-13 15:42:10

Re: Ошибка «The mbstring PHP extension was not found»

Ой Спасибо огроменное Не поняла что конкретно помогло Но заработало

Ну вот и у Вас приключилась «счастливая случайность»

14 Ответ от DrHyder 2007-03-05 12:55:39

Re: Ошибка «The mbstring PHP extension was not found»

Здравствуйте.
При установке RHEL4 все в пакетах, и устанавливается автоматически. Нет ничего похожего на то, что описано в приведенной статье. Неужели для исправления этой ошибки нужно качать архив с php и устанавливать его по-новой, используя —enable-mbstring=ru?
phpinfo() выдал следующее:
‘./configure’ ‘—build=i386-redhat-linux’ ‘—host=i386-redhat-linux’ ‘—target=i386-redhat-linux-gnu’ ‘—program-prefix=’ ‘—prefix=/usr’ ‘—exec-prefix=/usr’ ‘—bindir=/usr/bin’ ‘—sbindir=/usr/sbin’ ‘—sysconfdir=/etc’ ‘—datadir=/usr/share’ ‘—includedir=/usr/include’ ‘—libdir=/usr/lib’ ‘—libexecdir=/usr/libexec’ ‘—localstatedir=/var’ ‘—sharedstatedir=/usr/com’ ‘—mandir=/usr/share/man’ ‘—infodir=/usr/share/info’ ‘—cache-file=../config.cache’ ‘—with-config-file-path=/etc’ ‘—with-config-file-scan-dir=/etc/php.d’ ‘—enable-force-cgi-redirect’ ‘—disable-debug’ ‘—enable-pic’ ‘—disable-rpath’ ‘—enable-inline-optimization’ ‘—with-bz2’ ‘—with-db4=/usr’ ‘—with-curl’ ‘—with-exec-dir=/usr/bin’ ‘—with-freetype-dir=/usr’ ‘—with-png-dir=/usr’ ‘—with-gd=shared’ ‘—enable-gd-native-ttf’ ‘—without-gdbm’ ‘—with-gettext’ ‘—with-ncurses=shared’ ‘—with-gmp’ ‘—with-iconv’ ‘—with-jpeg-dir=/usr’ ‘—with-openssl’ ‘—with-png’ ‘—with-pspell’ ‘—with-xml’ ‘—with-expat-dir=/usr’ ‘—with-dom=shared,/usr’ ‘—with-dom-xslt=/usr’ ‘—with-dom-exslt=/usr’ ‘—with-xmlrpc=shared’ ‘—with-pcre-regex=/usr’ ‘—with-zlib’ ‘—with-layout=GNU’ ‘—enable-bcmath’ ‘—enable-exif’ ‘—enable-ftp’ ‘—enable-magic-quotes’ ‘—enable-safe-mode’ ‘—enable-sockets’ ‘—enable-sysvsem’ ‘—enable-sysvshm’ ‘—enable-track-vars’ ‘—enable-trans-sid’ ‘—enable-yp’ ‘—enable-wddx’ ‘—with-pear=/usr/share/pear’ ‘—with-imap=shared’ ‘—with-imap-ssl’ ‘—with-kerberos’ ‘—with-ldap=shared’ ‘—with-mysql=shared,/usr’ ‘—with-pgsql=shared’ ‘—with-snmp=shared,/usr’ ‘—with-snmp=shared’ ‘—enable-ucd-snmp-hack’ ‘—with-unixODBC=shared,/usr’ ‘—enable-memory-limit’ ‘—enable-shmop’ ‘—enable-calendar’ ‘—enable-dbx’ ‘—enable-dio’ ‘—enable-mbstring=shared’ ‘—enable-mbstr-enc-trans’ ‘—enable-mbregex’ ‘—with-mime-magic=/usr/share/file/magic.mime’ ‘—with-apxs2=/usr/sbin/apxs’
Говорит ли это о том, что mbstring установлен?

15 Ответ от Hanut 2007-03-05 22:41:28

Re: Ошибка «The mbstring PHP extension was not found»

DrHyder
В пакет PHP, на Fedora 6, mbstring уже подключен, смею думать, что и на RedHat также (о чем говорят соответствующие ключи). Вот только что значит shared в значении —enable-mbstring, что-то не понимаю. Обычно на PHP выше 4.3.3 при сборке указывается просто ‘—enable-mbstring’.

Просто подключить библиотеку, как на Windows, на Linux нельзя, необходима сборка или установка дополнений. Но странно то, что у вас сборка была произведена с mbstring, просто непонятно почему у ключа появилось значение, когда в документации ничего подобного не описано.

16 Ответ от DrHyder 2007-03-06 08:24:32

Re: Ошибка «The mbstring PHP extension was not found»

Hanut.
Спасибо, что подтвердили мои опасения.
«
For PHP 4.3.3 or before, To enable that feature, you will have to supply either one of the following options to the LANG parameter of —enable-mbstring=LANG; —enable-mbstring=cn for Simplified Chinese support, —enable-mbstring=tw for Traditional Chinese support, —enable-mbstring=kr for Korean support, —enable-mbstring=ru for Russian support, and —enable-mbstring=ja for Japanese support (default). To enable all supported encoding, use —enable-mbstring=all.
«
Просто думал, что пропустил что-то с ключами. Ну а как теперь быть? Можно попробовать поставить пакеты с федоры шестой на четвертый ред хат? Или нужно устанавливать php, как описано в документации?

17 Ответ от Hanut 2007-03-06 13:54:11

Re: Ошибка «The mbstring PHP extension was not found»

Сборка — это всегда лучший вариант.

Установка на RedHat пакета Fedora, сомнительна, но попробовать можно. Хотя лучший вариант поискать решение данной проблемы на форумах пользователей RedHat, оно обязательно должно быть.

Источник

Оцените статью