Welcome to Centmin Mod Community
Register Now

[Solved] Install PHP-FPM PHP 7.4 not installing on fresh install of 130

Discussion in 'Bug Reports' started by fly, Jul 29, 2023.

  1. fly

    fly Member

    109
    16
    18
    Jul 27, 2019
    Ratings:
    +28
    Local Time:
    10:50 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7
    • Centmin Mod Version Installed: 130
    • PHP Version Installed: 7.4.33
    • When was last time updated Centmin Mod code base ? : Today. Fresh install of Centminmod
    • Persistent Config: No
    This is what I'm seeing in the logs:
    Code:
    In file included from /svr-setup/php-7.4.33/ext/zip/php_zip.c:32:
    /svr-setup/php-7.4.33/ext/zip/php_zip.h:30:10: fatal error: zip.h: No such file or directory
       30 | #include <zip.h>
          |          ^~~~~~~
    compilation terminated.
    make: *** [ext/zip/php_zip.lo] Error 1
    make: *** Waiting for unfinished jobs....
    


     
  2. fly

    fly Member

    109
    16
    18
    Jul 27, 2019
    Ratings:
    +28
    Local Time:
    10:50 AM
    Also tried with 8.0.29 and got the same result.
     
  3. Benjamin74

    Benjamin74 Member

    72
    6
    8
    May 2, 2016
    Ratings:
    +15
    Local Time:
    4:50 PM
    Same for me today, php isn't installed with either the stable or beta php 8.1 installer. Trying to find out where the problem lies
     
  4. brijendrasial

    brijendrasial Active Member

    201
    144
    43
    Mar 21, 2018
    Ratings:
    +226
    Local Time:
    8:20 PM
    1.13.9
    10.0.22-MariaDB
    Hello,

    Please always try to post full logs.

    @eva2000 you need to fix below.

    Temporary workaround is

    Check the last line comment it and add the new line below like this.

    Now recompile php from centmin option 5 and it will work
     
  5. eva2000

    eva2000 Administrator Staff Member

    51,967
    11,976
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,473
    Local Time:
    12:50 AM
    Nginx 1.25.x
    MariaDB 10.x
    Everyone having issues will need to post full info asked at https://community.centminmod.com/threads/how-to-troubleshoot-centmin-mod-initial-install-issues.102/ including initial install logs :)

    @brijendrasial nice catch. Can folks also post the output they get from this command
    Code (Text):
    wget -S -O /dev/null https://libzip.org/download/libzip-1.7.3.tar.gz
    

    on CentOS 7 I get
    Code (Text):
    wget -S -O /dev/null https://libzip.org/download/libzip-1.7.3.tar.gz
    --2023-07-29 13:40:47--  https://libzip.org/download/libzip-1.7.3.tar.gz
    Resolving libzip.org... 2a04:52c0:101:2e6::de6c, 5.2.73.210
    Connecting to libzip.org|2a04:52c0:101:2e6::de6c|:443... failed: No route to host.
    Connecting to libzip.org|5.2.73.210|:443... connected.
    OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
    Unable to establish SSL connection.
    

    on AlmaLinux 8 I get
    Code (Text):
    wget -S -O /dev/null https://libzip.org/download/libzip-1.7.3.tar.gz
    --2023-07-29 09:40:28--  https://libzip.org/download/libzip-1.7.3.tar.gz
    Resolving libzip.org (libzip.org)... 2a04:52c0:101:2e6::de6c, 5.2.73.210
    Connecting to libzip.org (libzip.org)|2a04:52c0:101:2e6::de6c|:443... connected.
    HTTP request sent, awaiting response...
      HTTP/1.1 200 OK
      Date: Sat, 29 Jul 2023 13:40:29 GMT
      Server: Apache/2.4.56 (Unix) OpenSSL/1.1.1d PHP/5.6.40
      Last-Modified: Wed, 15 Jul 2020 08:07:27 GMT
      ETag: "12cb02-5aa766a218dc0"
      Accept-Ranges: bytes
      Content-Length: 1231618
      Strict-Transport-Security: max-age=15768000
      Keep-Alive: timeout=5, max=100
      Connection: Keep-Alive
      Content-Type: application/x-gzip
    Length: 1231618 (1.2M) [application/x-gzip]
    Saving to: ‘/dev/null’
    /dev/null                 100%[==================================>]   1.17M   869KB/s    in 1.4s  
    2023-07-29 09:40:30 (869 KB/s) - ‘/dev/null’ saved [1231618/1231618]
    


    Looks like libzip.org web server is forcing TLSv1.3 protocol for clients and CentOS 7 uses OpenSSL 1.0.2 so TLSv1.3 isn't supported by wget and curl while EL8 uses OpenSSL 1.1.1 with TLSv1.3 support. Looks like a silly web server config issue to force TLSv1.3 on libzip.org while TLSv1.2 would of probably been fine.
     
  6. eva2000

    eva2000 Administrator Staff Member

    51,967
    11,976
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,473
    Local Time:
    12:50 AM
    Nginx 1.25.x
    MariaDB 10.x
    FYI, updated 124.00stable and 130.00beta01 with libzip download URL fix https://community.centminmod.com/threads/23994/ and looks to be working from my new automated Centmin Mod OS testing :D

    cmm-github-workflow-status-badges-12.png

    Inspecting PHP-FPM config from AlmaLinux 8 + PHP 7.4 default install looks good :)

    cmm-github-workflow-actions-almalinux8-php7.4-01.png

    cmm-github-workflow-actions-almalinux8-php7.4-02.png

    Checking PHP-FPM binary's libzip :D

    cmm-github-workflow-actions-almalinux8-php7.4-03.png
     
  7. Benjamin74

    Benjamin74 Member

    72
    6
    8
    May 2, 2016
    Ratings:
    +15
    Local Time:
    4:50 PM
    I'm getting the same on centos 7:

    Code:
    # wget -S -O /dev/null https://libzip.org/download/libzip-1.7.3.tar.gz
    --2023-07-29 19:10:39--  https://libzip.org/download/libzip-1.7.3.tar.gz
    Résolution de libzip.org… 2a04:52c0:101:2e6::de6c, 5.2.73.210
    Connexion à libzip.org|2a04:52c0:101:2e6::de6c|:443… connecté.
    OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
    Incapable d’établir une connexion SSL.
     
  8. fly

    fly Member

    109
    16
    18
    Jul 27, 2019
    Ratings:
    +28
    Local Time:
    10:50 AM