After I installed phpmyadmin, and run it with localhost/phpmyadmin I get error:
phpMyAdmin - Error The mbstring extension is missing. Please check
your PHP configuration
When I check php -m console displays that mbstring is already installed.
PHP version: 7.2.4
Installed phpmyadmin via apt-get install phpmyadmin
In directory /etc/php I got 3 subfolders - 7.1, 7.2, 7.3
You need to install w.r.t your PHP version.
sudo apt-get install php7.1-mbstring
Or you may specific php version in command
Had the same problem and worked for me after checking PHP version
php -v
which gave me :
PHP 7.2.13-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Dec 7 2018 08:07:36) ( NTS )
so I did
sudo apt-get install php7.2-mbstring
Thanks
Related
I have multiple PHP version installed (7.0, 7.1 and 7.3). I have enabled PHP 7.0 (I need to keep this version for various reasons). When I try to install imagick (via sudo apt-get install php-imagick) the libraries are copied/installed only for PHP 7.3, despite I'm using 7.0 as confirmed by php -v and phpinfo file.
Am I missing any Apache setting? Why it doesn't consider the current 7.0 enabled module as default php version while installing new php libraries?
OS: Debian 10
WS: Apache/2.4.38
I've tried to edit php.ini, enable extensions, usual basic procedure... but imagick.so is compiled for php 7.3 only. There's no trace of them in the extension folder of PHP 7.0 and it's not possible to load it.
UPDATE #1
Checking with sudo update-alternatives --config php
I see this table (see image) - I don't know how to change priority or automode. It looks like PHP 7.3 keep the top priority.
screen
UPDATE #2
Tried this, no results.
PHP 7.0 set as default
sudo update-alternatives --set php /usr/bin/php7.0
sudo update-alternatives --set php-config /usr/bin/php-config7.0
sudo update-alternatives --set phpize /usr/bin/phpize7.0
Reinstall imagick
sudo apt-get install imagemagick php-imagick --reinstall
(no error, but it keeps installing them for PHP 7.3)
php -m show no modules, because they are in the extension folder of php 7.3
Debian 10 uses PHP 7.3 as its "standard" PHP version, so all of its PHP extension packages -- including php-imagick -- will contain extensions which target PHP 7.3.
If you have somehow installed PHP 7.0 (which you should not do, as it reached end-of-life in January 2019 and no longer receives security updates), you will need to obtain extensions for it through some other channel.
i've installed moodle from github. I'm using php5, then i can't install it.
So, i'm upgrade my php to php7.1, but still error. The error message like this : Moodle 3.4 or later requires at least PHP 7.0.0 (currently using version 5.6.26-1). Some servers may have multiple PHP versions installed, are you using the correct executable?
My php version : PHP 7.1.6-2 (cli) (built: Jun 14 2017 05:31:31) ( NTS )
Can anyone help me?
Your php7 version looks to be the php-cli version and is not the one used by your http server (apache or other) : display a phpinfo(); in your browser.
It looks like you are using debian, first remove php5 : apt-get remove php5* libapache2-mod-php5 and install the 7 version, something like :
apt-get install apache2 php7.0 libapache2-mod-php7.0 php7.0-cli php7.0-zip php7.0-intl php7.0-common php7.0-curl php7.0-imagick php7.0-gd php7.0-json php7.0-ldap php7.0-mcrypt php7.0-memcache php7.0-memcached php7.0-mysql php7.0-pgsql php7.0-readline php7.0-bcmath php7.0-mbstring php7.0-xml
Moodle has no concern with this.
I had the same problem. After upgrading xampp, my problem has solved.
I want to install the mcrypt on vagrant machine.
The OS is Ubuntu.
Which is the command?
First check php version,
E.g.
php -v
PHP 5.6.38-3+ubuntu18.04.1+deb.sury.org+1 (cli)
Currently php version is 5.6, you will need to install with below command line
sudo apt-get install php5.6-mcrypt
Output
I'm trying to install intl for php. When I'm running sudo pecl install intl it gives me an error No releases available for package "pecl.php.net/intl". I have tried to clear cache and also I tried to upgrade pear and pecl. Nothing. Here my pear and php versions:
PEAR Version: 1.9.4
PHP Version: 5.6.3
Zend Engine Version: 2.6.0
Running on: Darwin iMac-bvc.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64
Any ideas? Thanks in advance!
To get it off the unanswered list:
Well, problem solved!
If you can't install intl by pecl you can just download from pecl.php.net the package which you need (in my case it was intl-3.0.0.tgz).
Then install it by pear like that:
$ sudo pear install intl-3.0.0.tgz
After you have to add extension="intl.so" inside php.ini and then restart apache.
If you want to check whether intl has installed or not you can use this command:
$ php -m | grep intl
If result is intl then you did it! =)
Please follow below steps:
Try this under mac brew install homebrew/php/php70-intl
Then open php.ini (you can use which php to help you).
Add, extension = /usr/local/Cellar/php70-intl/7.0.25_20/intl.so
And then use php -m | grep intl
If it works, the intl will be displayed.
I have PHP 5.4.23 on my CentOS with Nginx as webserver
and I am trying to install php-intl extension
I ran below command
# yum --enablerepo=remi install php-intl
It ran successfully but still my phpinfo don't show this extension...
please help