Skip to main content

Bz2 not enabled in PHP Centos 7 - EA4

Comments

14 comments

  • cPanelMichael
    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
  • Samet Chan
    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
  • cPanelMichael
    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
  • Samet Chan
    [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
  • cPanelMichael
    Hello, That shows the installation completed successfully. Can you confirm the issue is now resolved? Thank you.
    0
  • Samet Chan
    Nope, still same "bzip2 compression disabled (install pecl/bz2)" i'll refreshed on PHP Info.
    0
  • cPanelMichael
    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
  • Samet Chan
    Are installed already?
    0
  • cPanelMichael
    Are installed already?

    Could you elaborate on this response? Thanks!
    0
  • Samet Chan
    As i can see my WHM with EasyApache bz2 are installed PHP 7.0 and 5.6, PHP Info doesn't up.
    0
  • cPanelMichael
    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
  • Samet Chan
    @cPanelMichael , Support Ticket: 8109471 I just created support ticket from WHM.
    0
  • Samet Chan
    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
  • cPanelMichael
    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.