Operating System & Version
CENTOS 7.7 kvm
cPanel & WHM Version
v86.0.18

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
11,214
1,006
313
Houston
This error does not happened before. I am not using COMODO WAF. We are using ModSecurity with COMODO ModSecurity Rules for Apache.
Those are the COMODO WAF rules you're using when you use their ModSecurity Ruleset. It's noted in the error as well. They are not offered by cPanel and there are commonly issues with them. cPanel offers and provides support for issues with the OWASP Modsecurity Ruleset.

We can rule out an issue with EasyApache by disabling that ruleset then provisioning. If you do not continue to receive an error with them disabled you can safely confirm the issue is with the 3rd party ruleset and you'd need to address that issue with them here: Free ModSecurity Rules from Comodo
 
  • Like
Reactions: djbaxter

blue7

Member
Mar 1, 2016
13
4
3
Turkey
cPanel Access Level
Root Administrator
I'd suggest disabling COMODO WAF and attempting to provision again. This isn't related to the EasyApache update process at all, it's specific to the 3rd party plugin.




You'd just need to ensure that it's included in your EasyApache profile then set whichever domains you'd like to use it in the MultiPHP Manager.



Do the following first to clear your cache:

Code:
yum clean all
Done but still there is no JPEG

Edit: Sorry, i am using Litespeed, restarting Litespeed fixed the problem. Thank you.
 
Last edited:

AndyX

Well-Known Member
Sep 25, 2015
58
10
8
Los Altos, CA
cPanel Access Level
Website Owner
I get the following error when I try to use mb_split with php74.

1587923480161.png

If I switch to php73 I don't get the error. Looks like mbstring is installed on php74.

1587923683259.png
 

AndyX

Well-Known Member
Sep 25, 2015
58
10
8
Los Altos, CA
cPanel Access Level
Website Owner
php73
1587990307981.png

php4
1587990345875.png

Looks like oniguruma version is missing in php74.

Oniguruma is necessary for the regular expression functions with multibyte character support. Oniguruma is bundled with mbstring. As of PHP 5.4.0, if Oniguruma is already installed on the system, --with-onig[=DIR] can be specified to use the installed library.
Source: PHP: Installation - Manual
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
11,214
1,006
313
Houston
As noted in that excerpt:

Mbstring:
  • --with-onig has been removed. Unless --disable-mbregex has been passed, libonig is required.
Looking at the php configure command the --disable-mbregex option has been passed:

Code:
[[email protected] ~]# php -i  |grep mbregex
Configure Command =>  './configure'  '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/opt/cpanel/ea-php74/root/usr' '--exec-prefix=/opt/cpanel/ea-php74/root/usr' '--bindir=/opt/cpanel/ea-php74/root/usr/bin' '--sbindir=/opt/cpanel/ea-php74/root/usr/sbin' '--sysconfdir=/opt/cpanel/ea-php74/root/etc' '--datadir=/opt/cpanel/ea-php74/root/usr/share' '--includedir=/opt/cpanel/ea-php74/root/usr/include' '--libdir=/opt/cpanel/ea-php74/root/usr/lib64' '--libexecdir=/opt/cpanel/ea-php74/root/usr/libexec' '--localstatedir=/opt/cpanel/ea-php74/root/var' '--sharedstatedir=/opt/cpanel/ea-php74/root/var/lib' '--mandir=/opt/cpanel/ea-php74/root/usr/share/man' '--infodir=/opt/cpanel/ea-php74/root/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/cpanel/ea-php74/root/etc' '--with-config-file-scan-dir=/opt/cpanel/ea-php74/root/etc/php.d' '--disable-debug' '--with-password-argon2=/opt/cpanel/libargon2' '--with-pic' '--without-pear' '--with-bz2' '--with-freetype' '--with-xpm' '--without-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg' '--with-openssl' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-kerberos' '--enable-shmop' '--with-libxml' '--with-system-tzdata' '--with-mhash' '--libdir=/opt/cpanel/ea-php74/root/usr/lib64/php' '--enable-pcntl' '--enable-opcache' '--enable-phpdbg' '--with-imap=shared,/opt/cpanel/ea-php74/root/usr' '--with-imap-ssl' '--enable-mbstring=shared' '--disable-mbregex' '--with-webp' '--enable-gd=shared' '--with-gmp=shared' '--enable-calendar=shared' '--enable-bcmath=shared' '--with-bz2=shared' '--enable-ctype=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-tcadb=/usr' '--enable-exif=shared' '--enable-ftp=shared' '--with-gettext=shared' '--with-iconv=shared' '--enable-sockets=shared' '--enable-tokenizer=shared' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-mysqlnd=shared' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-dom=shared' '--with-pgsql=shared' '--enable-simplexml=shared' '--enable-xml=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/opt/cpanel/libcurl' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-sqlite3=shared,/usr' '--enable-json=shared' '--with-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-tidy=shared,/opt/cpanel/libtidy' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-shmop=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-intl=shared' '--with-enchant=shared,/usr' '--enable-fileinfo=shared' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'PKG_CONFIG_PATH=/opt/cpanel/ea-php74/root/usr/lib64/pkgconfig:/opt/cpanel/ea-php74/root/usr/share/pkgconfig:/usr/lib64/pkgconfig:/opt/cpanel/ea-openssl11/lib64/pkgconfig:/opt/cpanel/ea-libxml2/lib64/pkgconfig:/opt/cpanel/ea-libicu/lib/pkgconfig' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -Wno-pointer-sign' 'KERBEROS_CFLAGS=-I/usr/include' 'KERBEROS_LIBS=-L/usr/lib64' 'OPENSSL_CFLAGS=-I/opt/cpanel/ea-openssl11/include' 'OPENSSL_LIBS=-L/opt/cpanel/ea-openssl11/lib -lssl -lcrypto -lresolv' 'CURL_CFLAGS=-I/opt/cpanel/libcurl/include' 'CURL_LIBS=-L/opt/cpanel/libcurl/lib64 -lcurl' 'JPEG_CFLAGS=-I/usr/include' 'JPEG_LIBS=-L/usr/lib64 -ljpeg' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' 'SASL_CFLAGS=-I/usr/include' 'SASL_LIBS=-L/usr/lib64' 'XSL_CFLAGS=-I/opt/cpanel/ea-libxml2/include/libxml2' 'XSL_LIBS=-L/opt/cpanel/ea-libxml2/lib64 -lxml2' 'LIBZIP_CFLAGS=-I/opt/cpanel/ea-libzip/include' 'LIBZIP_LIBS=-L/opt/cpanel/ea-libzip/lib64 -lzip'
 

AndyX

Well-Known Member
Sep 25, 2015
58
10
8
Los Altos, CA
cPanel Access Level
Website Owner
Hi Lauren,

Thank you for taking a look.

I assume that --with-onig needs to be added to cPanel php74 configuration in order for us to be able to use mb_split. Is this correct?
 
Last edited:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
11,214
1,006
313
Houston
Hi Lauren,

Thank you for taking a look.

I assume that --with-onig needs to be added to cPanel php74 configuration in order for us to be able to use mb_split. Is this correct?
It seems this way but allow me to double-check as it seems to have a been an oversight on PHP's part or they've included the function and I'm just not seeing it.

***Update**

Looks as though we have a couple cases for this open currently:

EA-9034 - Add ea-oniguruma packages to production internal and external repo
as well as :
ZC-6649 PHP 7.4 "mbregex" regular expression functions with multibyte character support disabled (because no oniguruma)

Based on that I can surmise that we're creating our own oniguruma package for php 7.4 to allow use of mbregex
 
Last edited:
  • Like
Reactions: webmastergreg

AndyX

Well-Known Member
Sep 25, 2015
58
10
8
Los Altos, CA
cPanel Access Level
Website Owner
Looks as though we have a couple cases for this open currently:

EA-9034 - Add ea-oniguruma packages to production internal and external repo
as well as :
ZC-6649 PHP 7.4 "mbregex" regular expression functions with multibyte character support disabled (because no oniguruma)

Based on that I can surmise that we're creating our own oniguruma package for php 7.4 to allow use of mbregex
Can I get an update on this?

Thank you.