If anybody know how to enable mbstring in codeigniter
then please tell how to enable mbstring in codeigniter
i enabled mbstring from cpanel.the problem solved :)
Related
i am trying to install laravel project by composer install but in return it gives the following error.
Problem 1
- Installation request for laravel/framework v7.14.1 -> satisfiable by laravel/framework[v7.14.1].
- laravel/framework v7.14.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for league/commonmark 1.4.3 -> satisfiable by league/commonmark[1.4.3].
- league/commonmark 1.4.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 3
- Installation request for facade/ignition 2.0.6 -> satisfiable by facade/ignition[2.0.6].
- facade/ignition 2.0.6 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 4
- Installation request for mockery/mockery 1.4.0 -> satisfiable by mockery/mockery[1.4.0].
- mockery/mockery 1.4.0 requires php ^7.3.0 -> your PHP version (7.2.24) does not satisfy that requirement.
Problem 5
- Installation request for phpunit/phpunit 8.5.5 -> satisfiable by phpunit/phpunit[8.5.5].
- phpunit/phpunit 8.5.5 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 6
- Installation request for scrivo/highlight.php v9.18.1.1 -> satisfiable by scrivo/highlight.php[v9.18.1.1].
- scrivo/highlight.php v9.18.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 7
- laravel/framework v7.14.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- facade/flare-client-php 1.3.2 requires illuminate/pipeline ^5.5|^6.0|^7.0 -> satisfiable by laravel/framework[v7.14.1].
- Installation request for facade/flare-client-php 1.3.2 -> satisfiable by facade/flare-client-php[1.3.2].
But mbstring is already installed in php72. First I check the version of the php --v and it returned
PHP 7.2.24
then checked the loaded modules php72 -m and there was mbstring no problem there too... After that I checked the mbstring is enabled or not php72 -i | grep mbstring and it's enabled
Multibyte decoding support using mbstring => enabled
In the end why composer is not seeing the mbstring? I check the modules of composer show -p seeing. And NO there is no mbstring! Any idea why composer not seeing the mbstring and how can I fix this issue?
Additionally I am in Centos 7
Your mbstring extension is missing for php7.2
Run sudo apt-get install -y php7.2-mbstring
Edit
Also, mockery/mockery 1.4.0 requires php ^7.3.0.
I suggest upgrading your project php version.
Log speaks for itself.
laravel/framework v7.14.1 requires ext-mbstring
league/commonmark 1.4.3 requires ext-mbstring
facade/ignition 2.0.6 requires ext-mbstring
phpunit/phpunit 8.5.5 requires ext-mbstring
scrivo/highlight.php v9.18.1.1 requires ext-mbstring
try this command
yum install php-mbstring
then
composer update
Hello I found a problem here in which I am unable to run the composer, and I am receiving the following error:
Error when performing composer installation
Do not run Composer as root / superuser! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from the lock file
Your requirements could not be resolved for an installable set of packages.
Issue 1
- Installation request for hashids / hashids 4.0.0 -> satisfactory for hashids / hashids [4.0.0].
- hashids / hashids 4.0.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing on your system.
Issue 2
- Request for installation of laravel / framework v7.4.0 -> satisfactory for laravel / framework [v7.4.0].
- laravel / framework v7.4.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing on your system.
Issue 3
- Installation request for lcobucci / jwt 3.3.1 -> satisfactory by lcobucci / jwt [3.3.1].
- lcobucci / jwt 3.3.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing on your system.
Issue 4
- Request for installation of the alloy / common brand 1.3.2 -> satisfactory by the alloy / common brand [1.3.2].
- league / commonmark 1.3.2 requires ext-mbstring * -> the requested mbstring PHP extension is missing from your system.
Issue 5
- Request for installation of the facade / ignition 2.0.2 -> satisfactory for the facade / ignition [2.0.2].
- facade / ignition 2.0.2 requires ext-mbstring * -> the requested PHP extension mbstring is missing on your system.
Issue 6
- Request to install phpunit / phpunit 8.5.3 -> satisfactory by phpunit / phpunit [8.5.3].
- phpunit / phpunit 8.5.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing on your system.
Issue 7
- Request to install the scrivo / highlighted.php v9.18.1.1 -> satisfactory by the scrivo / highlighted.php [v9.18.1.1].
- scrivo / highlighted.php v9.18.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing on your system.
Issue 8
- laravel / framework v7.4.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing on your system.
- facade / flare-client-php 1.3.2 requires lighting / pipeline ^ 5.5 | ^ 6.0 | ^ 7.0 -> satisfactory by laravel / framework [v7.4.0].
- Installation request for facade / flare-client-php 1.3.2 -> satisfactory for facade / flare-client-php [1.3.2].
You can also run `php --ini` inside the terminal to see which files are used by PHP in CLI mode.
Does anyone know how to tell me where I'm going wrong? And how can I be solving this problem?
Laravel 7 requires the following php modules
php-zip
php-mysql
php-mcrypt
php-xml
php-mbstring
use the following code to install them on fedora/centos/rhel. This will install missing modules only,
yum --enablerepo=remi,epel install php-zip php-mysql php-mcrypt php-xml php-mbstring
service httpd restart
for ubuntu/debian check the current php version installed and install modules accordingly. for example, if php 7.2 is installed, use the following code.
sudo apt install libapache2-mod-php7.2 php7.2-mcrypt php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-cli php7.2-zip php7.2-mysql
sudo systemctl restart apache2.service
How we can install intl and mcrpyt in Mac OS for PHP 7.2?
Please suggest.
Thanks!
Since PHP 7.2 the mcrypt extension isn't released anymore since it was deprecated for 7.1
Check this might be it will helpful
Install mcrypt php-7.2
I know that laravel 5.4 need to meets PHP >= 5.6.4. I try to find XAMPP with php 5.6.4 but i have nothing. I just have xampp with php 5.6.3 installed. Will laravel 5.4 run on php 5.6.3?
Server requirements for laravel 5.4:
PHP >= 5.6.4
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Laravel Installation Server Requirements
I'm currently working to put our project under php7.
When trying to compile the mailparse extension or use pecl to install it, I get this error:
#error The mailparse extension requires the mbstring extension!
I did install the php7.0-mbstring and tried to put the mbstring extension with the mailparse source code. I also tried to use my old C skills and try include the libraries myself without success.
Any of you has an idea how I could solve my problem? (without editing the code like I saw in some forums)
Thanks
You should be able to download the mailparse source, comment out the test for HAVE_MBSTRING in mailparse.c (around line 34), and build it normally.
Here's what I did in Ubuntu 16.04 (assume 'sudo' when necessary):
cd /tmp
apt-get install php7.0-dev
pecl download mailparse
tar xvzf mailparse-3.0.2.tgz
cd mailparse-3.0.2
phpize
./configure
sed -i \
's/^\(#error .* the mbstring extension!\)/\/\/\1/' \
mailparse.c
make
make install
Then you just need to enable the mailparse.so module in your PHP configuration.
For Ubuntu 16.04 and PHP-FPM, you'd use:
echo "extension=mailparse.so" > \
/etc/php/7.0/fpm/conf.d/30-mailparse.ini
service php7.0-fpm reload