Enabling mbstring on PHP 7.0.10 when 5.6.33 is the default PHP version

3 posts / 0 new
Last post
#1 Fri, 02/16/2018 - 16:03
AlainGauthier
AlainGauthier's picture

Enabling mbstring on PHP 7.0.10 when 5.6.33 is the default PHP version

Mbstring is enabled in php.ini, but it does not affect the PHP 7 installation. mbsting is installed for php7, but not enabled? Where is the file to enable it by default? I use aMember and it is broken without it.

Here is printout of my configuration check. The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active .. Your system has 141.49 GB of memory, which is at or above the Virtualmin recommended minimum of 256 MB. BIND DNS server is installed, and the system is configured to use it. Mail server Postfix is installed and configured. Postfix can support per-domain outgoing IP addresses, but is not currently configured to do so. This can be setup in the Postfix Mailserver module. Apache is installed. The following PHP versions are available : 5.6.33 (/bin/php-cgi), 7.0.10 (/opt/rh/rh-php70/root/usr/bin/php-cgi), 5.6 (mod_php) PHP-FPM support was not detected : No FPM configuration directory found Webalizer is installed. Apache is configured to host SSL websites. MySQL is installed and running. ProFTPD is installed. Logrotate is installed. SpamAssassin and Procmail are installed and configured for use. ClamAV is installed and assumed to be running. The System and Server Status module is installed and checking on schedule. Plugin DAV Login is installed OK. Plugin AWstats reporting is installed OK. Plugin Protected web directories is installed OK. Plugin Virtualmin Support Links is installed OK. Plugin Additional content styles from OpenWebDesign.org is installed OK. Plugin Additional content styles is installed OK. Using network interface enp3s0f0 for virtual IPs. IPv6 addresses are available, using interface enp3s0f0. Default IPv4 address for virtual servers is xxx.xx.xxx.xx. Default IPv6 address for virtual servers is xxxx.xxxx.xxx.xxxxx. Default IP address is set to xxx.xx.xxx.xx, which matches the detected external address. Both user and group quotas are enabled for home and email directories. All commands needed to create and restore backups are installed. Resource limits are supported and configured correctly. The selected package management and update systems are installed OK. Chroot jails are not available : The Jailkit command jk_init was not found on your system - maybe the jailkit package is not installed? The Virtualmin YUM repository is configured correctly .. your system is ready for use by Virtualmin.

Here is my PHP configuration for the virtual domain running aMember, that needs mbscting enabled.

PHP versions installed 5.6.33, 7.0.10 Modules for PHP 5
bz2 calendar cgi-fcgi Core ctype curl date dom ereg exif fileinfo filter ftp gd gettext hash iconv imap json libxml mbstring mcrypt mhash mysql mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar posix readline Reflection session shmop SimpleXML snmp sockets SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zip zlib

Modules for PHP 7.0 bz2 calendar cgi-fcgi Core ctype curl date dom exif fileinfo filter ftp gettext hash iconv json libxml mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline Reflection session shmop SimpleXML sockets SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl zip zlib

Pear modules for PHP 5
Archive_Tar Console_Getopt PEAR PEAR_Manpages Structures_Graph XML_Util

As you can see it is running/enabled on PHP 5, but not on 7.

Any help would be appreciated, I have been fighting with this all week.

Alain Gauthier

Thu, 02/22/2018 - 18:03
atleast
atleast's picture

hello Alain I had the same issue today I had php fpm 5 6 33 and also regular php 5 6 33 I had to install mbstring pdo and a few more again. If it is already there it wont install. After Installing I just had to restart apache and the modules were enabled on their own. A friend suggested me to .so file of each mod. in php.ini but once i reinstalled and restarted apache it worked.

Sat, 03/23/2019 - 01:01
aozcakir

@AlainGauthier have you found a solution to this issue? I have the same problem. Please advise. Thanks, Aslan

ASLAN OZCAKIR

Topic locked