AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  PHP 8.1.12 in AIX Toolbox

    Posted Tue January 31, 2023 06:36 AM
    Edited by RESHMA KUMAR Tue January 31, 2023 06:48 AM

    The latest version of php that is currently available in AIX Toolbox is 7.4.33. Version 7.4.x is no longer supported by the community and we will be uploading PHP 8.1.12 in AIX toolbox by this week.

    PHP 8.x comes with several new features and some incompatibilities with PHP 7.x. Please refer to https://www.php.net/manual/en/migration80.php for further details. Due to these incompatibilities, if one has php scripts that make use of any feature that is modified or deprecated in PHP8, it may not work.

    To alert users that this is a major php version change, PHP rpms are now named php8, instead of just php. Hence, to install php8, one has to run dnf install php8.
    We have also added Conflicts: php<8 in php8 spec file so that if one has php 7.x rpms already installed on their system, then installation of php8 would fail with package conflict error as shown below.

    package php8-8.1.12-1.ppc conflicts with php < 8 provided by php-7.4.33-1.ppc

    In order to avoid this, make sure to uninstall php 7.x rpms before installing php8.

    Note:

    Since PHP 8.0, the PHP module for Apache has been renamed. The Apache module identifier is renamed to php_module. In PHP 7.x, it was named php7_module. So, we have modified httpd-php.conf file as follows.

    LoadModule php_module /opt/freeware/lib/httpd/modules/libphp.so

     Users won't be impacted by this, it's just for information.



    ------------------------------
    RESHMA KUMAR
    ------------------------------


  • 2.  RE: PHP 8.1.12 in AIX Toolbox

    Posted Fri February 03, 2023 08:39 AM
    php 8.1.12 is now available in AIX Toolbox
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/php8/

    ------------------------------
    RESHMA KUMAR
    ------------------------------



  • 3.  RE: PHP 8.1.12 in AIX Toolbox

    Posted Mon February 27, 2023 10:08 AM

    Hello @RESHMA KUMAR !

    Is it planned for old software like ganglia(-web) to make it installable with php8? Thanks!

    []# rpm -q --provides php8*
    config(php8) = 8.1.12-1
    libphp.so
    mod_php = 8.1.12-1
    php8 = 8.1.12-1
    soap.so
    
    []# rpm -q --requires  ganglia-web                                                                        
    /bin/bash
    /bin/sh
    php >= 5.2
    rpmlib(CompressedFileNames) <= 3.0.4-1
    rpmlib(PayloadFilesHavePrefix) <= 4.0-1
    
    []# rpm -q --whatrequires php 
    ganglia-web-3.7.2-3.noarch
    
    [] # dnf install php8 --allowerasing
    Last metadata expiration check: 0:02:00 ago on Mon Feb 27 14:48:06 MET 2023.
    Dependencies resolved.
    ==============================================================================================================================================================================================================================================
    Package                                                  Architecture                                        Version                                                  Repository                                                        Size
    ==============================================================================================================================================================================================================================================
    Installing:
    php8                                                     ppc                                                 8.1.12-1                                                 AIX_Toolbox                                                      7.7 M
    Installing dependencies:
    php8-common                                              ppc                                                 8.1.12-1                                                 AIX_Toolbox                                                      545 k
    Removing dependent packages:
    ganglia-web                                              noarch                                              3.7.2-3                                                  @AIX_Toolbox_noarch                                              2.5 M
    php                                                      ppc                                                 7.4.33-1                                                 @AIX_Toolbox                                                      30 M Transaction Summary
    ==============================================================================================================================================================================================================================================
    Install  2 Packages
    Remove   2 Packages Total download size: 8.2 M
    Is this ok [y/N]: 


    ------------------------------
    Stephan Dietl
    ------------------------------



  • 4.  RE: PHP 8.1.12 in AIX Toolbox

    Posted Tue February 28, 2023 07:56 AM

    Yes, we are looking into updating ganglia-web with php8.



    ------------------------------
    RESHMA KUMAR
    ------------------------------



  • 5.  RE: PHP 8.1.12 in AIX Toolbox

    Posted Wed November 22, 2023 04:20 AM

    Hello @RESHMA KUMAR !

    Any news on this, I really need to get rid of PHP 7.4 without losing Ganglia:

    # dnf install php8 --allowerasing
    Last metadata expiration check: 1:18:50 ago on Wed Nov 22 08:59:16 MET 2023.
    Dependencies resolved.
    ==============================================================================================================================================================================================================================================
     Package                                                  Architecture                                        Version                                                  Repository                                                        Size
    ==============================================================================================================================================================================================================================================
    Installing:
     php8                                                     ppc                                                 8.1.22-1                                                 AIX_Toolbox                                                      7.2 M
    Installing dependencies:
     php8-common                                              ppc                                                 8.1.22-1                                                 AIX_Toolbox                                                      554 k
    Removing dependent packages:
     ganglia-web                                              noarch                                              3.7.2-3                                                  @AIX_Toolbox_noarch                                              2.5 M
     php                                                      ppc                                                 7.4.33-1                                                 @AIX_Toolbox                                                      30 M

    Transaction Summary
    ==============================================================================================================================================================================================================================================
    Install  2 Packages
    Remove   2 Packages

    Thanks,

    With kind regards,

    Steve



    ------------------------------
    Stephan Dietl
    ------------------------------