How To Install Iconv Php Extension

Active1 year, 1 month ago
  1. How To Install Php

What is the PHP mbstring extension, and what is the best way to install it on Ubuntu 14.04?

Android Dev
11.4k7 gold badges35 silver badges67 bronze badges

Iconv registers the convert.iconv.* stream filter for transcoding on the fly. To do the same with mbstring or intl's UConverter you'd need to wrap them in a userland stream filter. The mcrypt extension is an interface to the mcrypt cryptography library. This extension is useful for allowing PHP code using mcrypt to run on PHP 7.2+. The main problem with mcrypt extension is that it is based on libmcrypt that hasn’t been developped since its upstream in 2007.

Rohit BindRohit Bind

7 Answers

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

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.

Community
goncalotomasgoncalotomas
1,7802 gold badges8 silver badges8 bronze badges

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

As described in package details :

sparkmoodsparkmood

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

Nanhe KumarNanhe Kumar

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.

ChickenFeetChickenFeet

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

AveAve

For Ubuntu 14.04 extension mbstring should be built in.

For Ubuntu 16.04:

See also Introduction to Multibyte String

simhumilecosimhumileco

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:

deb http://security.ubuntu.com/ubuntu bionic-security main universe

NealNeal

Not the answer you're looking for? Browse other questions tagged 14.04phpextension or ask your own question.

Active1 month ago

I need install the following extension with php5.6 and ubuntu 16.04, but ubuntu only install extensions for php 7this extension i cannot install with the issue relatedInstalling PHP 5.6 on Xenial (16.04)

I need to use the functions:

and the gd library.any answer that can help me, thanks

Community
Jonathan RodriguezJonathan Rodriguez
7851 gold badge6 silver badges10 bronze badges

2 Answers

Ok finding in a lot of blogs and aswer, the obviously answer is add suffix in php, then for install php5.6 or before add this.

later of this you need install extension with the following commands

if you install php 5.6 you need add 5.6 to php, for example

etc . or otherwise if you make php-gd you install gd for php7, and thanks to @elder-geek for add links

Jonathan RodriguezJonathan Rodriguez
7851 gold badge6 silver badges10 bronze badges

It's entirely possible that I am misunderstanding you entirely but if what you are looking for is available for Xenial (16.04) in the PPA you reference, it can be found listed here.

To enable GD-support configure PHP --with-gd[=DIR] , where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd . GD library requires libpng and libjpeg to compile.

There's an alphabetical list of extensions on this page

There's also a list of deprecated and experimental extension to be found here.

You can also obtain the Current Stable PHP 5.6.23 via download

And then download all the relevant drivers form HP. Set the bios to boot from usb, then when the install asks - select the correct version of windows 7 for the key you have, use the Key for the laptop (should be a windows 7 sticker on it? Alternatively buy the recovery CD from the above mentioned site and save you messing around making the windows 7 boot usb for, so you can install the right version. Hp probook 4510s recovery cd download.

Elder GeekHow to install iconv php extensionElder Geek
28.3k11 gold badges63 silver badges139 bronze badges

How To Install Php

Not the answer you're looking for? Browse other questions tagged aptphp or ask your own question.