Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  php socket module error

    Posted Thu January 02, 2025 02:13 PM

    We have installed php on our webserver but we need the socket module enabled. Much of what we read it says to run 'dnf install php8-socket' but that doesn't seem to exist in the aixtools repo. Has php already been compiled for this module and it just needs to be enabled? If so, how do I do this?

    Here is our error:

    PHP Warning:  PHP Startup: Unable to load dynamic library 'sockets' (tried: /opt/freeware/lib/php/modules/sockets (Could not load module /opt/freeware/lib/php/modules/sockets.

    System error: No such file or directory), /opt/freeware/lib/php/modules/sockets.so (Could not load module /opt/freeware/lib/php/modules/sockets.so.



    ------------------------------
    Scott Brown
    ------------------------------

    #AIXOpenSource


  • 2.  RE: php socket module error

    Posted Fri January 17, 2025 02:03 AM

    Hello,

    php in AIX Toolbox has not been compiled with the socket module enabled. 
    We will try to enable this module and check it out.



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



  • 3.  RE: php socket module error

    Posted Fri January 24, 2025 05:06 PM

    Thank you, Reshma, for your response. What is the timeframe you usually have for completing something like this?



    ------------------------------
    Scott Brown
    ------------------------------



  • 4.  RE: php socket module error

    Posted Fri February 07, 2025 04:55 AM

    We have already started working on this and will try to publish it by the end of 1Q.



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



  • 5.  RE: php socket module error

    Posted Wed March 19, 2025 02:02 PM

    When that is published, how will I know that that has happened, if it hasn't already?



    ------------------------------
    Scott Brown
    ------------------------------



  • 6.  RE: php socket module error

    Posted Fri March 21, 2025 02:45 PM

    Hello Scott,

    We are targeting next week to publish this and will send you a confirmation here once it is completed.



    ------------------------------
    Sumitra Dawn
    ------------------------------



  • 7.  RE: php socket module error

    Posted Mon April 21, 2025 02:27 AM

    php 8.1.31-2 is now available in AIX Toolbox. Socket module is enabled in this release. It is shipped with the php8-common sub-rpm.
    Please use DNF to update to this release.



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



  • 8.  RE: php socket module error

    Posted Wed April 30, 2025 12:02 PM
    Edited by Kolin Vance Wed April 30, 2025 01:12 PM

    Tried using DNF to update to 8.1.31-2 and picked this up from DNF:

     dnf install php
    Last metadata expiration check: 0:00:18 ago on Wed Apr 30 09:46:47 2025.
    Error:
     Problem: problem with installed package php8-8.1.31-1.ppc
      - package php8-8.1.31-1.ppc conflicts with php < 8 provided by php-7.4.33-1.ppc
      - package php8-8.1.12-1.ppc conflicts with php < 8 provided by php-7.4.33-1.ppc
      - package php8-8.1.17-1.ppc conflicts with php < 8 provided by php-7.4.33-1.ppc
      - package php8-8.1.22-1.ppc conflicts with php < 8 provided by php-7.4.33-1.ppc
      - package php8-8.1.22-2.ppc conflicts with php < 8 provided by php-7.4.33-1.ppc
      - package php8-8.1.29-1.ppc conflicts with php < 8 provided by php-7.4.33-1.ppc
      - package php8-8.1.31-2.ppc conflicts with php < 8 provided by php-7.4.33-1.ppc
      - cannot install the best candidate for the job
    (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

    Tried the --allowerasing and got this:

     dnf --allowerasing install php
    Last metadata expiration check: 0:01:31 ago on Wed Apr 30 09:46:47 2025.
    Dependencies resolved.
    ===============================================================================================================================================================================================================
     Package                                        Architecture                                  Version                                             Repository                                              Size
    ===============================================================================================================================================================================================================
    Installing:
     php                                            ppc                                           7.4.33-1                                            AIX_Toolbox                                            7.0 M
    Removing dependent packages:
     php8                                           ppc                                           8.1.31-1                                            @AIX_Toolbox                                            33 M

    Transaction Summary
    ===============================================================================================================================================================================================================
    Install  1 Package
    Remove   1 Package

    Not what I was expecting, any suggestions?

    ---- UPDATE ----

    By running "dnf --allowerasing install php" it installed and erased php8

    Running "dnf --allowerasing install php8" it installed and erased php version 7.4.33-1 and updated to 8.1.31-2

    This should get anyone to the sockets version of php...

    -Kolin



    ------------------------------
    Kolin Vance
    ------------------------------