What is the PHP mbstring extension, and what is the best way to install it on Ubuntu 14.04?
|
|
|
EDIT: Dylan Pierce has confirmed that you can already install some PHP 7 extensions in the same way you would for PHP 5. For
To complement sparkmood's answer, this now works for PHP 7 if you already imported ondrej's PPA for it.
Don't forget, either PHP 7 is available through ubuntu's official repositories or you will need an external PPA. |
|||||||||||||||||||||
|
|
mbstring is built in libapache2-mod-php5 package, so you can use this command for installing :
As described in package details :
|
|||||||||
|
I have installed mbstring in php7.0-fpm (7.0.15-0ubuntu0.16.04.4) |
|||||||||
|
|
In my case it was already installed, but I just needed to do |
|||
|
|
|
If you're using php 5.6 Install php 5.6 mbstring package:
Then add the following line to the bottom of your php.ini file:
Restart apache:
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. |
|||
|
|
|
For Ubuntu 14.04 extension mbstring should be built in. For Ubuntu 16.04:
See also Introduction to Multibyte String |
|||
|
|