Welcome to Centmin Mod Community
Become a Member

PHP-FPM PHP compile problem

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Rhodium, Oct 27, 2024.

  1. Rhodium

    Rhodium New Member

    25
    5
    3
    Jul 1, 2020
    Ratings:
    +9
    Local Time:
    4:26 PM
    • CentOS Version: Alma Linux 9
    • Centmin Mod Version Installed: 140.00beta01.b156
    • Nginx Version Installed: 1.27.2
    • PHP Version Installed: 8.3.13
    • MariaDB MySQL Version Installed: 10.6.19
    • When was last time updated Centmin Mod code base ? : 27/10/2024
    • Persistent Config:
      Code (Text):
      LETSENCRYPT_DETECT='y'
      DUALCERTS='y'
      NGINX_SSLCACHE_ALLOWOVERRIDE='y'
      NGINX_STAPLE_CACHE_OVERRIDE='y'
      NGINX_STAPLE_CACHE_TTL='86400'
      SET_DEFAULT_MYSQLCHARSET='utf8mb4'
      AUTOHARDTUNE_NGINXBACKLOG='y'
      ZSTD_LOGROTATE_NGINX='y'
      ZSTD_LOGROTATE_PHPFPM='y'
      SELFSIGNEDSSL_ECDSA='y'
      NGINX_LIBBROTLI='y'
      NGXDYNAMIC_BROTLI='y'
      NEEDRESTART_CHECK='y'
      PHP_BROTLI='y'
      PHP_LZFOUR='y'
      PHP_LZF='y'
      PHP_ZSTD='y'
      DMOTD_PHPCHECK='y'
      PHPFINFO='y'
      MM_CSF_SRC='y'
      MM_LICENSE_KEY='xxxx'
      CF_DNSAPI_GLOBAL='y'
      CF_Token='xxxx'
      CF_Account_ID='xxxx'
      IMAGEMAGICK_SEVEN='y'
      
    Hi, still getting errors when trying to recompile a new PHP version in AlmaLinux 9. I can compile fine adding this to custom_config.inc: PHP_EXTRAOPTS='--with-libzip=/opt/remi/libzip/lib64/ --with-password-argon2'


    But without i get this error:
    Code (Text):
    Installing PEAR environment:      /usr/local/lib/php/
    /svr-setup/php-8.3.13/fpm-build/sapi/cli/php: symbol lookup error: /svr-setup/php-8.3.13/fpm-build/sapi/cli/php: undefined symbol: zip_file_is_seekable
    make[1]: *** [Makefile:553: install-pear-installer] Error 127
    make: *** [Makefile:558: install-pear] Error 2
    


    This is the full log :D
    centminmodlog-20241027
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,389
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    1:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    What output do you get from these commands - wrap in CODE or CODEB bbcode tags

    Code (Text):
    updatedb
    locate libzip.so
    
     
  3. Rhodium

    Rhodium New Member

    25
    5
    3
    Jul 1, 2020
    Ratings:
    +9
    Local Time:
    4:26 PM
    Code (Text):
    locate libzip.so
    /opt/remi/libzip/lib64/libzip.so
    /opt/remi/libzip/lib64/libzip.so.5
    /opt/remi/libzip/lib64/libzip.so.5.5
    /svr-setup/libzip-1.10.1/build/lib/libzip.so
    /svr-setup/libzip-1.10.1/build/lib/libzip.so.5
    /svr-setup/libzip-1.10.1/build/lib/libzip.so.5.5
    /usr/lib64/libzip.so.5
    /usr/lib64/libzip.so.5.3
    /usr/share/elasticsearch/jdk/lib/libzip.so
    


    Maybe its because ImageMagick7 install libzip too?
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,389
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    1:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Indeed interesting issue on AlmaLinux 9 PHP 8.1.30 works, 8.2.25 and higher don't when non-default optional ImageMagick7 is installed. Though test various fixes now.
     
  5. Matt

    Matt Well-Known Member

    929
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    3:26 PM
    1.5.15
    MariaDB 10.2
  6. eva2000

    eva2000 Administrator Staff Member

    54,389
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    1:26 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Just committed to 140.00beta01 a fix when you compile PHP 8.2+ with optional non-default
    IMAGEMAGICK_SEVEN='y'. Took some time to fix as some as of the issues were PHP 8.2 or 8.3 or 8.4 specific. Ended up having to have some workarounds implemented. If you switch to optional non-default IMAGEMAGICK_SEVEN='y' with PHP 7.4+ now will use REMI remi-libzip too while still allowing REMI ImageMagick7 to use it's libzip dependency.