So in this tutorial, we are going to install PHP5.6 on Debian 8 Jessie. Check the source list. And you can also install many PHP modules that you want like php5-json, php5-mbstring, php5-cli, php5-fpm. Apt-get install php5-pgsql php5 php5-fpm. Installing PHP5 with postgresql module.
I am using PHP 5.6 on my centos-release-6-8.el6.centos.12.3.x8664 server. I got following error from one of my PHP function. Fatal error: Call to undefined function mbdetectencoding So, I tried to install mbstring extension.
When I execute sudo yum install php-mbstring CLI returns Package php-mbstring-5.6.25-1.el6.remi.x8664 already installed and latest version Nothing to do And I aslo tried 'sudo yum install php56-mbstring' This returns No package php56-mbstring available. Installing PHP extensions/modules via RPM will install the library files into /usr/lib64/php/modules/. Running php -i grep ^extensiondir shows the extension directory that is currently configured. An extension directory of /usr/local/lib/php/extensions/no-debug-non-zts-20131226 indicates that at some stage in the past, PHP was installed from source and that a php.ini file relating to this source installation is currently being used instead of the /etc/php.ini provided by the php-common package. To solve this problem, you should remove the remnants of this source installation.
![Php mbstring download Php mbstring download](http://codemarts.com/wp-content/uploads/2016/02/memcache_xampp.jpg)
![Php 7 mbstring Php 7 mbstring](/uploads/1/2/5/4/125448699/800714664.png)
Unfortunately, the Makefile provided with PHP source code doesn’t include an uninstall target so you can’t simply run make uninstall. I’d suggest using the find command to track down these files by their modification date.