Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Issues installing module using Ansible

Discussion in 'EasyApache' started by JoyceBabu, Feb 23, 2017.

  1. JoyceBabu

    JoyceBabu Member

    Joined:
    Dec 7, 2010
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    51
    I am trying to setup my server using Ansible. Installation of module ea-php71-php-bz2 is failing with message

    ea-php71-php-common-7.1.2-1.1.2.cpanel.x86_64 providing ea-php71-php-bz2 is already installed

    Code:
    $ yum whatprovides ea-php71-php-calendar
    ...
    ea-php71-php-calendar-7.1.2-1.1.2.cpanel.x86_64 : A module for PHP applications that need date/time calculations
    Repo        : @EA4
    
    ea-php71-php-common-7.1.2-1.1.2.cpanel.x86_64 : Common files for PHP
    Repo        : @EA4
    Matched from:
    Provides    : ea-php71-php-calendar = 7.1.2-1.1.2.cpanel
    But ea-php71-php-common does not provide the shared library for bz2

    Code:
    $ rpm -ql ea-php71-php-common
    /opt/cpanel/ea-php71/root/etc/php.d
    /opt/cpanel/ea-php71/root/etc/php.d/20-ctype.ini
    /opt/cpanel/ea-php71/root/etc/php.d/20-json.ini
    /opt/cpanel/ea-php71/root/etc/php.d/20-phar.ini
    /opt/cpanel/ea-php71/root/etc/php.d/20-tokenizer.ini
    /opt/cpanel/ea-php71/root/etc/php.ini
    /opt/cpanel/ea-php71/root/usr/lib64/php
    /opt/cpanel/ea-php71/root/usr/lib64/php/modules
    /opt/cpanel/ea-php71/root/usr/lib64/php/modules/ctype.so
    /opt/cpanel/ea-php71/root/usr/lib64/php/modules/json.so
    /opt/cpanel/ea-php71/root/usr/lib64/php/modules/phar.so
    /opt/cpanel/ea-php71/root/usr/lib64/php/modules/tokenizer.so
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/CODING_STANDARDS
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/CREDITS
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/EXTENSIONS
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/LICENSE
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/NEWS
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.EXT_SKEL
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.GIT-RULES
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.MAILINGLIST_RULES
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.NEW-OUTPUT-API
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.PARAMETER_PARSING_API
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.REDIST.BINS
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.RELEASE_PROCESS
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.SELF-CONTAINED-EXTENSIONS
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.STREAMS
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.SUBMITTING_PATCH
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.TESTING
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.TESTING2
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.UNIX-BUILD-SYSTEM
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.WIN32-BUILD-SYSTEM
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.input_filter
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.md
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/README.namespaces
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/TSRM_LICENSE
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/ZEND_CHANGES
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/ZEND_LICENSE
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/libmagic_LICENSE
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/phar_LICENSE
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/php.ini-development
    /opt/cpanel/ea-php71/root/usr/share/doc/ea-php71-php-common-7.1.2/php.ini-production
    /opt/cpanel/ea-php71/root/usr/share/php
    /opt/cpanel/ea-php71/root/usr/var/lib
    Because of this, I am unable to install bz2 and calendar extensions using sensible. But if I use yum to install the packages, it is being installed correctly.
     
    #1 JoyceBabu, Feb 23, 2017
    Last edited: Feb 23, 2017
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    604
    Likes Received:
    94
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Howdy,

    Yep, i'm seeing this as well. It appears we tell our common package to provide all the shared modules it builds (bz2 being one of them), but I'm not seeing any loaders or INI configs to tell it to do the right thing.

    I'm testing this a bit on my side. I'll update you in a bit with my findings. Thanks for the report!
     
  3. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    604
    Likes Received:
    94
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I removed the Provides for BZ2 under our php-common package, and I got a dedicated package for bz2 with:
    Code:
    jperkins64 :: rpmbuild/RPMS/x86_64 # rpm2cpio ea-php71-php-bz2-7.1.2-1.el6.cpanel.x86_64.rpm | cpio -idmv              1 ↵
    ./opt/cpanel/ea-php71/root/etc/php.d/20-bz2.ini
    ./opt/cpanel/ea-php71/root/usr/lib64/php/modules/bz2.so
    I'm looking in this a bit more to see why our common package isn't providing this module
     
  4. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    604
    Likes Received:
    94
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    I opened case EA-6008 to have bz2 and the calendar extension split out from the php-common packages. I'll try to get this released as quickly as I can.

    Thanks for the report!
     
Loading...

Share This Page