mohammadreza

Active Member
Jan 7, 2018
40
0
6
Teh
cPanel Access Level
Root Administrator
Hello
I want to enable mbstring on php7.4 and called the following command which indicates that it is enabled

Code:
rpm -qa |grep mbstring
result:
Code:
jetphp73-mbstring-7.3.14.2-5.x86_64
ea-php73-php-mbstring-7.3.33-3.el7.cloudlinux.x86_64
ea-php74-php-mbstring-7.4.27-5.el7.cloudlinux.x86_64
alt-php-internal-mbstring-7.4.22-2.el7.x86_64
alt-php81-mbstring-8.1.3-1.el7.x86_64
alt-php80-mbstring-8.0.16-1.el7.x86_64
alt-php73-mbstring-7.3.33-4.el7.x86_64
But in PHP info indicates that it is disabled
It should be noted that its option is enabled in the PHP Selector

I need help to enable this feature

Thank you
Kind regards
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
Hey there! I don't see the alt-php74-mbstring package present. If you're using alt-php74 that could be an issue.

It would also be a good idea to check the "Loaded Configuration" line in the PHP Info page to confirm which configuration is in use.
 

mohammadreza

Active Member
Jan 7, 2018
40
0
6
Teh
cPanel Access Level
Root Administrator
Hey there! I don't see the alt-php74-mbstring package present. If you're using alt-php74 that could be an issue.

It would also be a good idea to check the "Loaded Configuration" line in the PHP Info page to confirm which configuration is in use.
Thanks for your reply

it's used /opt/alt/php74/etc/php.ini

How i can install in alt-php74?

Thanks
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
12,499
1,971
363
cPanel Access Level
Root Administrator
I checked a CloudLinux machine and found that when running "yum groupinstall alt-php" that alt-php74-mbstring was installed by default. Can you run this command on your server to get that package installed?

Code:
yum install alt-php74-mbstring
 
Last edited:

mohammadreza

Active Member
Jan 7, 2018
40
0
6
Teh
cPanel Access Level
Root Administrator
I checked a CloudLinux machine and found that when running "yum groupinstall alt-php" that alt-php74-mbstring was installed by default. Can you run this command on your server to get that package installed?

Code:
alt-php74-mbstring
Thanks for your reply
I did that
Result:
Code:
yum groupinstall alt-php
Loaded plugins: fastestmirror, rhnplugin, universal-hooks
This system is receiving updates from CLN.
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                     |  22 kB     00:00
 * cpanel-addons-production-feed: 178.18.193.52
 * cpanel-plugins: 178.18.193.52
 * epel: mirror.23m.com
cpanel-addons-production-feed                            | 2.9 kB     00:00
cpanel-plugins                                           | 2.9 kB     00:00
MariaDB103                                               | 3.4 kB     00:00
cl-ea4                                                   | 3.0 kB     00:00
cloudlinux-ea4-rollout-1                                 | 3.0 kB     00:00
cloudlinux-ea4-rollout-10                                | 3.0 kB     00:00
cloudlinux-ea4-rollout-2                                 | 3.0 kB     00:00
cloudlinux-ea4-rollout-3                                 | 3.0 kB     00:00
cloudlinux-ea4-rollout-4                                 | 3.0 kB     00:00
cloudlinux-ea4-rollout-5                                 | 3.0 kB     00:00
cloudlinux-ea4-rollout-6                                 | 3.0 kB     00:00
cloudlinux-ea4-rollout-7                                 | 3.0 kB     00:00
cloudlinux-ea4-rollout-8                                 | 3.0 kB     00:00
cloudlinux-ea4-rollout-9                                 | 3.0 kB     00:00
cloudlinux-imunify360                                    | 3.0 kB     00:00
cloudlinux-rollout-1                                     | 3.0 kB     00:00
cloudlinux-rollout-10                                    | 3.0 kB     00:00
cloudlinux-rollout-2                                     | 3.0 kB     00:00
cloudlinux-rollout-3                                     | 3.0 kB     00:00
cloudlinux-rollout-4                                     | 3.0 kB     00:00
cloudlinux-rollout-5                                     | 3.0 kB     00:00
cloudlinux-rollout-6                                     | 3.0 kB     00:00
cloudlinux-rollout-7                                     | 3.0 kB     00:00
cloudlinux-rollout-8                                     | 3.0 kB     00:00
cloudlinux-rollout-9                                     | 3.0 kB     00:00
imunify360                                               | 3.0 kB     00:00
imunify360-rollout-1                                     | 3.0 kB     00:00
imunify360-rollout-2                                     | 3.0 kB     00:00
imunify360-rollout-3                                     | 3.0 kB     00:00
imunify360-rollout-4                                     | 3.0 kB     00:00
kernelcare                                               | 3.0 kB     00:00
cloudlinux-x86_64-server-7                               | 4.3 kB     00:00
cloudlinux-x86_64-server-7/primary_db                    |  56 MB     00:00
Maybe run: yum groups mark install (see man yum)
No packages in any requested group available to install or update