Bz2 not enabled in PHP Centos 7 - EA4
[root@xxxxx src]# yum install bzip2
Loaded plugins: fastestmirror, langpacks, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: xx.xxx.xx.xxx
* base: xxxxx.xxxxx.xxxxx.network
* epel: xxxxx.xxxxx.xxxxx.network
* extras: xxxxx.xxxxx.xxxxx.network
* updates: xxxxx.xxxxx.xxxxx.network
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Nothing to do
I can't find EasyApache 4 for bz2.
-
Hello, You can verify if it's installed with commands such as: # /opt/cpanel/ea-php70/root/usr/bin/php -m|grep bz2 bz2
# /opt/cpanel/ea-php70/root/usr/bin/php -i|grep bzip2 Registered PHP Streams => https, ftps, compress.zlib, php, file, glob, data, http, ftp, compress.bzip2, phar, zip Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, bzip2.*, convert.iconv.*, mcrypt.*, mdecrypt.* Stream Wrapper support => compress.bzip2:// Stream Filter support => bzip2.decompress, bzip2.compress bzip2 compression => enabled
Also, please note the command you referenced is for the system bzip2 package, not the PHP module. Please review the following document to see how PHP modules are installed with EasyApache 4:0 -
Hello, It should be installed by default for PHP 7.0 with EasyApache 4:
# /opt/cpanel/ea-php70/root/usr/bin/php -m|grep bz2 bz2
# /opt/cpanel/ea-php70/root/usr/bin/php -i|grep bzip2 Registered PHP Streams => https, ftps, compress.zlib, php, file, glob, data, http, ftp, compress.bzip2, phar, zip Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, bzip2.*, convert.iconv.*, mcrypt.*, mdecrypt.* Stream Wrapper support => compress.bzip2:// Stream Filter support => bzip2.decompress, bzip2.compress bzip2 compression => enabled
Also, please note the command you referenced is for the system bzip2 package, not the PHP module. Please review the following document to see how PHP modules are installed with EasyApache 4:0 -
Hello, You can also verify it's installed via the following command: rpm -qa|grep ea-php70-php-bz2
The output will look like this if it's installed:# rpm -qa|grep ea-php70-php-bz2 ea-php70-php-bz2-7.0.14-1.1.1.cpanel.x86_64
If it's not, you can install it via:yum install ea-php70-php-bz2
If your website's not detecting it, then check to see if a custom php.ini file exists under the account's document root or home directory. The custom php.ini file could be outdated, and may not include the bz2 extension. Thank you.0 -
[root@xxxxxx~]# rpm -qa|grep ea-php70-php-bz2 [root@xxxxxx~]# rpm -qa|grep ea-php70-php-bz2 ea-php70-php-bz2-7.0.14-1.1.1.cpanel.x86_64 grep: ea-php70-php-bz2-7.0.14-1.1.1.cpanel.x86_64: No such file or directory [root@xxxxxx~]# yum install ea-php70-php-bz2 [Removed Output] Installed: ea-php70-php-bz2.x86_64 0:7.0.14-1.1.1.cpanel Complete! 0 -
Hello, That shows the installation completed successfully. Can you confirm the issue is now resolved? Thank you. 0 -
Nope, still same "bzip2 compression disabled (install pecl/bz2)" i'll refreshed on PHP Info. 0 -
Nope, still same "bzip2 compression disabled (install pecl/bz2)" i'll refreshed on PHP Info.
Hello, Please also verify if you were able to review my response about the php.ini file: If your website's not detecting it, then check to see if a custom php.ini file exists under the account's document root or home directory. The custom php.ini file could be outdated, and may not include the bz2 extension.
Thanks!0 -
Are installed already? 0 -
Are installed already?
Could you elaborate on this response? Thanks!0 -
As i can see my WHM with EasyApache bz2 are installed PHP 7.0 and 5.6, PHP Info doesn't up. 0 -
As i can see my WHM with EasyApache bz2 are installed PHP 7.0 and 5.6, PHP Info doesn't up.
Could you open a support ticket using the link in my signature so we can take a closer look and see why it's not working as expected? Thank you.0 -
@cPanelMichael , Support Ticket: 8109471 I just created support ticket from WHM. 0 -
Support ticket has fixed installed and succesfully on my server, it's enabled now. [It's super fast fixed] Please you can solve this thread :) 0 -
Hello, To update, our support team verified the bz2 module was installed on the system. Thank you. 0
Please sign in to leave a comment.
Comments
14 comments