Join the community today
Become a Member

Upgrade i got some warning when recompile the backported

Discussion in 'Install & Upgrades or Pre-Install Questions' started by kanran111, Oct 22, 2026 at 2:26 PM.

  1. kanran111

    kanran111 New Member

    5
    1
    3
    Jul 13, 2021
    Ratings:
    +4
    Local Time:
    2:35 PM
    • CentOS Version: rocky linux 9.8
    • Centmin Mod Version Installed:
      132.00stable
    • Nginx Version Installed:
      nginx/1.31.3
    • PHP Version Installed:
      PHP 8.1.34 (cli) (built: Oct 22 2026 10:21:20) (NTS)

    While running the test suite after recompiling, I encountered a missing command warning for sysctl.

    I confirmed that sysctl is already available on my vps (sysctl from procps-ng 3.3.17), so this seems to be an issue with the execution environment's $PATH (e.g., non-interactive shell not including system binary paths).

    Attached is the full log for troubleshooting.

    Thanks for your work.


    Code:
    ............
    Build complete.
    Don't forget to run 'make test'.
    
    Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20210902/
    /svr-setup/igbinary-php ~
    
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/mailparse.ini,
    /etc/centminmod/php.d/mcrypt.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/redis.ini,
    /etc/centminmod/php.d/timezonedb.ini,
    /etc/centminmod/php.d/zendopcache.ini
    
    
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    FFI
    fileinfo
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    ldap
    libxml
    mailparse
    mbstring
    mcrypt
    memcache
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    sodium
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    timezonedb
    tokenizer
    xml
    xmlreader
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    
    
    service php-fpm restart
    Redirecting to /bin/systemctl restart php-fpm.service
    ░░
    ░░ A stop job for unit php-fpm.service has finished.
    ░░
    ░░ The job identifier is 1479377 and the job result is done.
    Oct 22 10:25:36 aaaa systemd[1]: Starting PHP FastCGI Process Manager...
    ░░ Subject: A start job for unit php-fpm.service has begun execution
    ░░ Defined-By: systemd
    ░░ Support: https://wiki.rockylinux.org/rocky/support
    ░░
    ░░ A start job for unit php-fpm.service has begun execution.
    ░░
    ░░ The job identifier is 1479377.
    Oct 22 10:25:36 aaa systemd[1]: Started PHP FastCGI Process Manager.
    ░░ Subject: A start job for unit php-fpm.service has finished successfully
    ░░ Defined-By: systemd
    ░░ Support: https://wiki.rockylinux.org/rocky/support
    ░░
    ░░ A start job for unit php-fpm.service has finished successfully.
    ░░
    ░░ The job identifier is 1479377.
    
    
    8.1
    0
    ***************************************************
    PHP 7.0/7.1/7.2/7.3/7.4/8.0/8.1/8.2 detected.. remove unsupported PHP extensions manually
    by removing their ini files listed below (if list is empty = nothing to do):
    ***************************************************
    
    
    then restart PHP-FPM again...
    
    Stripping PHP Extensions in /usr/local/lib/php/extensions/no-debug-non-zts-20210902
    before stripping
    total 3.8M
    -rwxr-xr-x 1 root root 140K Aug 30 19:11 memcache.so
    -rwxr-xr-x 1 root root 141K Aug 30 19:11 memcached.so
    -rwxr-xr-x 1 root root  75K Aug 30 19:12 mailparse.so
    -rwxr-xr-x 1 root root 924K Aug 30 19:13 redis.so
    -rwxr-xr-x 1 root root 1.1M Oct 22 10:23 opcache.so
    -rwxr-xr-x 1 root root  38K Oct 22 10:23 geoip.so
    -rwxr-xr-x 1 root root 559K Oct 22 10:24 imagick.so
    -rwxr-xr-x 1 root root  82K Oct 22 10:25 igbinary.so
    -rwxr-xr-x 1 root root  52K Oct 22 10:25 mcrypt.so
    -rwxr-xr-x 1 root root 733K Oct 22 10:25 timezonedb.so
    
    after stripping
    total 3.4M
    -rwxr-xr-x 1 root root  121K Oct 22 10:25 memcache.so
    -rwxr-xr-x 1 root root  119K Oct 22 10:25 memcached.so
    -rwxr-xr-x 1 root root   63K Oct 22 10:25 mailparse.so
    -rwxr-xr-x 1 root root  819K Oct 22 10:25 redis.so
    -rwxr-xr-x 1 root root 1003K Oct 22 10:25 opcache.so
    -rwxr-xr-x 1 root root   31K Oct 22 10:25 geoip.so
    -rwxr-xr-x 1 root root  443K Oct 22 10:25 imagick.so
    -rwxr-xr-x 1 root root   43K Oct 22 10:25 mcrypt.so
    -rwxr-xr-x 1 root root   75K Oct 22 10:25 igbinary.so
    -rwxr-xr-x 1 root root  731K Oct 22 10:25 timezonedb.so
    
    ***************************************************
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    {
      "/usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcache.so": {
        "relro": "full",
        "canary": "yes",
        "nx": "yes",
        "pie": "dso",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "no",
        "symbols": "no",
        "fortify_source": "yes",
        "fortified": "5",
        "fortify-able": "9"
      }
    }
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    {
      "/usr/local/lib/php/extensions/no-debug-non-zts-20210902/memcached.so": {
        "relro": "full",
        "canary": "yes",
        "nx": "yes",
        "pie": "dso",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "no",
        "symbols": "no",
        "fortify_source": "no",
        "fortified": "0",
        "fortify-able": "2"
      }
    }
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    {
      "/usr/local/lib/php/extensions/no-debug-non-zts-20210902/mailparse.so": {
        "relro": "full",
        "canary": "yes",
        "nx": "yes",
        "pie": "dso",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "no",
        "symbols": "no",
        "fortify_source": "yes",
        "fortified": "2",
        "fortify-able": "5"
      }
    }
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    {
      "/usr/local/lib/php/extensions/no-debug-non-zts-20210902/redis.so": {
        "relro": "full",
        "canary": "yes",
        "nx": "yes",
        "pie": "dso",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "no",
        "symbols": "no",
        "fortify_source": "no",
        "fortified": "0",
        "fortify-able": "5"
      }
    }
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    {
      "/usr/local/lib/php/extensions/no-debug-non-zts-20210902/opcache.so": {
        "relro": "full",
        "canary": "yes",
        "nx": "yes",
        "pie": "dso",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "no",
        "symbols": "no",
        "fortify_source": "yes",
        "fortified": "6",
        "fortify-able": "12"
      }
    }
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    {
      "/usr/local/lib/php/extensions/no-debug-non-zts-20210902/geoip.so": {
        "relro": "full",
        "canary": "yes",
        "nx": "yes",
        "pie": "dso",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "no",
        "symbols": "no",
        "fortify_source": "no",
        "fortified": "0",
        "fortify-able": "1"
      }
    }
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    
    {
      "/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so": {
        "relro": "full",
        "canary": "yes",
        "nx": "yes",
        "pie": "dso",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "no",
        "symbols": "no",
        "fortify_source": "yes",
        "fortified": "1",
        "fortify-able": "2"
      }
    }
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    
    {
      "/usr/local/lib/php/extensions/no-debug-non-zts-20210902/igbinary.so": {
        "relro": "full",
        "canary": "yes",
        "nx": "yes",
        "pie": "dso",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "no",
        "symbols": "no",
        "fortify_source": "no",
        "fortified": "0",
        "fortify-able": "1"
      }
    }
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    {
      "/usr/local/lib/php/extensions/no-debug-non-zts-20210902/mcrypt.so": {
        "relro": "partial",
        "canary": "no",
        "nx": "yes",
        "pie": "dso",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "no",
        "symbols": "no",
        "fortify_source": "no",
        "fortified": "0",
        "fortify-able": "3"
      }
    }
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    {
      "/usr/local/lib/php/extensions/no-debug-non-zts-20210902/timezonedb.so": {
        "relro": "full",
        "canary": "no",
        "nx": "yes",
        "pie": "dso",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "no",
        "symbols": "no",
        "fortify_source": "no",
        "fortified": "0",
        "fortify-able": "0"
      }
    }
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    {
      "/usr/local/lib/libpcre.so": {
        "relro": "full",
        "canary": "yes",
        "nx": "yes",
        "pie": "dso",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "no",
        "symbols": "yes",
        "fortify_source": "yes",
        "fortified": "1",
        "fortify-able": "4"
      }
    }
    ***************************************************
    checksec --format=json --file=/usr/local/sbin/php-fpm --extended | jq -r
    WARNING: 'sysctl' not found! It's required for most checks.
    
    WARNING: Not all necessary commands found. Some tests might not work!
    
    {
      "/usr/local/sbin/php-fpm": {
        "relro": "full",
        "canary": "yes",
        "nx": "yes",
        "pie": "yes",
        "clangcfi": "no",
        "safestack": "no",
        "rpath": "no",
        "runpath": "yes",
        "symbols": "no",
        "fortify_source": "yes",
        "fortified": "18",
        "fortify-able": "37"
      }
    }
    ***************************************************
    Usage: /usr/local/bin/php-config [OPTION]
    Options:
      --prefix            [/usr/local]
      --includes          [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib]
      --ldflags           [ -Wl,-z,relro,-z,now -pie -L/usr/lib64/../lib64 -L/usr/local/lib64]
      --libs              [-lcrypt  -lc-client  -ltidy -lncurses -laspell -lpspell -lrt -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lbz2 -lrt -lm  -lsystemd -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lsqlite3 -lz -lcurl -lssl -lcrypto -lxml2 -lenchant -lgmodule-2.0 -lglib-2.0 -lffi -lssl -lcrypto -lz -lpng16 -lwebp -ljpeg -lXpm -lX11 -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -licuio -licui18n -licuuc -licudata -lonig -lsqlite3 -ledit -lxml2 -lnetsnmp -lm -lm -lssl -lssl -lcrypto -lxml2 -lsodium -largon2 -lxml2 -lxml2 -lxml2 -lxslt -lxml2 -lexslt -lxslt -lxml2 -lzip -lz -lssl -lcrypto -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20210902]
      --include-dir       [/usr/local/include/php]
      --man-dir           [/usr/local/php/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [ cli embed fpm phpdbg cgi]
      --ini-path          [/usr/local/lib]
      --ini-dir           [/etc/centminmod/php.d]
      --configure-options [--enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --enable-embed=shared --with-mhash --with-zlib --with-gettext --enable-exif --with-zip --with-libzip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --enable-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype --with-jpeg --with-png-dir=/usr --with-xpm --with-webp --with-t1lib=/usr --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --with-ldap --with-ldap-sasl --with-password-argon2 --with-sodium=/usr/local --with-pic --with-config-file-scan-dir=/etc/centminmod/php.d --with-fpm-systemd --with-ffi --with-xsl PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig: PNG_CFLAGS=-I/usr/include PNG_LIBS=-L/usr/lib64 -lpng16 ICU_CFLAGS=-fPIC ICU_LIBS=-L/usr/lib64 -licuio -licui18n -licuuc -licudata ONIG_CFLAGS=-I/usr/include ONIG_LIBS=-L/usr/lib64 -lonig LIBSODIUM_CFLAGS=-fPIC LIBSODIUM_LIBS=-L/usr/local/lib64 -lsodium ARGON2_CFLAGS=-I/usr/local/include ARGON2_LIBS=-L/usr/local/lib64 -largon2 LIBZIP_CFLAGS=-fPIC LIBZIP_LIBS=-L/usr/local/lib64 -lzip]
      --version           [8.1.34]
      --vernum            [80134]
    ***************************************************
    PHP 8.1.34 (cli) (built: Oct 22 2026 10:21:20) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.1.34, Copyright (c) Zend Technologies
        with Zend OPcache v8.1.34, Copyright (c), by Zend Technologies
    ***************************************************
    * PHP compiled with CPU_MARCH=broadwell
    * PHP upgraded and auto reinstalled PHP extensions
    ***************************************************
    php-libs-versionlock: locked 14 packages in /etc/dnf/plugins/versionlock.list
      GeoIP GeoIP-devel libcap-ng-python3 libc-client libicu73 libicu73-devel libmcrypt libmcrypt-devel libtidy libtidy-devel libxcrypt-compat oniguruma5php oniguruma5php-devel uw-imap-devel
       ____   _   _  ____    _   _                                _            _
      |  _ \ | | | ||  _ \  | | | | _ __    __ _  _ __  __ _   __| |  ___   __| |
      | |_) || |_| || |_) | | | | || '_ \  / _` || '__|/ _` | / _` | / _ \ / _` |
      |  __/ |  _  ||  __/  | |_| || |_) || (_| || |  | (_| || (_| ||  __/| (_| |
      |_|    |_| |_||_|      \___/ | .__/  \__, ||_|   \__,_| \__,_| \___| \__,_|
                                   |_|     |___/                               
    Total PHP Upgrade Time: 1446.789734501 seconds
     
    Last edited by a moderator: Oct 22, 2026 at 7:05 PM