lgtm. I cannot reproduce with the scant information as provided. What version, whatâs the rest of the command?
Hereâs my reference to provide further guidance.
# upcp -svb --var=force=true --var=php_version=8.1 php/install
Using /usr/local/apnscp/resources/playbooks/ansible.cfg as config file
PLAY [localhost] ******************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ************************************************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [common/acquire-lock : Validate lock existence] ******************************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "stat": {"atime": 1793123378.0506048, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "73e309f8024b4b16dfb6524ccbba006aba58ffab", "ctime": 1793123378.0506048, "dev": 2051, "device_type": 0, "executable": false, "exists": true, "gid": 985, "gr_name": "apnscp", "inode": 68878293, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1793123377.9776034, "nlink": 1, "path": "/usr/local/apnscp/storage/run/.ansible.lock", "pw_name": "apnscp", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 7, "uid": 989, "version": "1601860521", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}}
TASK [common/acquire-lock : Acquire lock] *****************************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "not st.stat.exists", "skip_reason": "Conditional result was False"}
TASK [common/acquire-lock : set_fact] *********************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"lock_pid_filename": "/proc/3622945/comm"}, "changed": false}
TASK [common/acquire-lock : Check if PID /proc/3622945/comm present] **************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "stat": {"exists": false}}
TASK [common/acquire-lock : Verify process matches ansible] ***********************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "st.stat.exists and -1 != lookup('file', lock_pid_filename).find(\"ansible\")\n", "skip_reason": "Conditional result was False"}
TASK [common/acquire-lock : Save PID in /usr/local/apnscp/storage/run/.ansible.lock] **********************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "checksum": "9c3e43efea066d2fe6b4d3367cf8521073703c96", "dest": "/usr/local/apnscp/storage/run/.ansible.lock", "gid": 985, "group": "apnscp", "md5sum": "1bda303ee565920e67966ca1a56d8216", "mode": "0644", "owner": "apnscp", "size": 7, "src": "/root/.ansible/tmp/ansible_mitogen_action_87ef27407da03570/source", "state": "file", "uid": 989}
TASK [check-requirements : Force admin lowercase] *********************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "(apnscp_admin_user | lower) != apnscp_admin_user", "skip_reason": "Conditional result was False"}
TASK [check-requirements : Check /home/virtual is writable] ***********************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0711", "owner": "root", "path": "/home/virtual", "size": 4096, "state": "directory", "uid": 0}
TASK [check-requirements : file] **************************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/usr/share/zoneinfo/UTC", "size": 127, "state": "hard", "uid": 0}
TASK [check-requirements : Assert yum hook valid] *********************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "yum_transaction_hook is defined and yum_transaction_hook != \"\"", "skip_reason": "Conditional result was False"}
TASK [php/install : Check for LoadModule presence in /etc/httpd/conf/httpd.conf] **************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "cmd": ["grep", "-Eqs", "^\\s*LoadModule\\s+php[[:digit:]]?_", "/etc/httpd/conf/httpd.conf"], "delta": "0:00:00.003054", "end": "2026-10-27 17:50:06.495314", "failed_when_result": false, "msg": "non-zero return code", "rc": 1, "start": "2026-10-27 17:50:06.492260", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
TASK [php/install : set_fact] *****************************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"__php_force_build": false}, "changed": false}
TASK [php/install : Remove PHP ISAPI] *********************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"backup": "", "changed": false, "found": 0, "msg": ""}
TASK [php/build-from-source : Download PHP release feed] **************************************************************************************************************************************************************************************************************
ok: [localhost] => {"attempts": 1, "cache_control": "public, max-age=2592000", "cdn_cache": "HIT", "cdn_cachedat": "10/27/2026 11:23:51", "cdn_edgestorageid": "1327, 1430", "cdn_proxyver": "1.71", "cdn_pullzone": "5992589", "cdn_requestcountrycode": "US", "cdn_requestid": "1e838ef04eb6791e5a22507c65fb680f", "cdn_requestpullcode": "200", "cdn_requestpullsuccess": "True", "cdn_requesttime": "0", "cdn_status": "200", "changed": false, "connection": "close", "content": "{\"announcement\":{\"English\":\"\\/releases\\/8_1_34.php\"},\"tags\":[\"security\"],\"date\":\"18 Dec 2025\",\"source\":[{\"filename\":\"php-8.1.34.tar.gz\",\"name\":\"PHP 8.1.34 (tar.gz)\",\"sha256\":\"3c5b060ec8e0d5dd1d8237823f3161cc8bc5342aab3c46893eba9857759c4bfa\",\"date\":\"18 Dec 2025\"},{\"filename\":\"php-8.1.34.tar.bz2\",\"name\":\"PHP 8.1.34 (tar.bz2)\",\"sha256\":\"98e0a08a0fae37d08dfcca2f5ff6664863097dde4b1d360af2acc8c3542f2a0f\",\"date\":\"18 Dec 2025\"},{\"filename\":\"php-8.1.34.tar.xz\",\"name\":\"PHP 8.1.34 (tar.xz)\",\"sha256\":\"ffa9e0982e82eeaea848f57687b425ed173aa278fe563001310ae2638db5c251\",\"date\":\"18 Dec 2025\"}],\"museum\":false,\"supported_versions\":[\"8.2\",\"8.3\",\"8.4\",\"8.5\"],\"version\":\"8.1.34\"}", "content_language": "en", "content_type": "application/json", "cookies": {}, "cookies_string": "", "date": "Tue, 27 Oct 2026 17:50:07 GMT", "elapsed": 0, "json": {"announcement": {"English": "/releases/8_1_34.php"}, "date": "18 Dec 2025", "museum": false, "source": [{"date": "18 Dec 2025", "filename": "php-8.1.34.tar.gz", "name": "PHP 8.1.34 (tar.gz)", "sha256": "3c5b060ec8e0d5dd1d8237823f3161cc8bc5342aab3c46893eba9857759c4bfa"}, {"date": "18 Dec 2025", "filename": "php-8.1.34.tar.bz2", "name": "PHP 8.1.34 (tar.bz2)", "sha256": "98e0a08a0fae37d08dfcca2f5ff6664863097dde4b1d360af2acc8c3542f2a0f"}, {"date": "18 Dec 2025", "filename": "php-8.1.34.tar.xz", "name": "PHP 8.1.34 (tar.xz)", "sha256": "ffa9e0982e82eeaea848f57687b425ed173aa278fe563001310ae2638db5c251"}], "supported_versions": ["8.2", "8.3", "8.4", "8.5"], "tags": ["security"], "version": "8.1.34"}, "msg": "OK (unknown bytes)", "permissions_policy": "interest-cohort=()", "redirected": false, "server": "BunnyCDN-PB1-1430", "status": 200, "strict_transport_security": "max-age=15768000", "transfer_encoding": "chunked", "url": "https://www.php.net/releases/index.php?json&version=8.1", "vary": "Accept-Encoding", "x_frame_options": "SAMEORIGIN"}
TASK [php/build-from-source : set_fact] *******************************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "feed is not defined", "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : set_fact] *******************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"__php_version": "8.1.34"}, "changed": false}
TASK [php/build-from-source : set_fact] *******************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"php_version_dict": {"full": "8.1.34", "major": "8", "minor": "8.1."}}, "changed": false}
TASK [include_role : php/build-from-source] ***************************************************************************************************************************************************************************************************************************
TASK [php/build-from-source : stat] ***********************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "stat": {"atime": 1793072368.8108816, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 137864, "charset": "binary", "checksum": "19407cf93104333f78c207de3b9596ec00e95e5b", "ctime": 1792725542.006535, "dev": 2051, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 42525629, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0755", "mtime": 1792689547.9447038, "nlink": 1, "path": "/usr/bin/php", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 70584640, "uid": 0, "version": null, "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}}
TASK [php/build-from-source : command] ********************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "cmd": ["/usr/bin/php", "-nr", "print(PHP_VERSION);"], "delta": "0:00:00.052681", "end": "2026-10-27 17:50:07.920431", "msg": "", "rc": 0, "start": "2026-10-27 17:50:07.867750", "stderr": "", "stderr_lines": [], "stdout": "8.1.34", "stdout_lines": ["8.1.34"]}
TASK [php/build-from-source : set_fact] *******************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"do_install_php": true}, "changed": false}
TASK [php/build-from-source : Validate multiPHP build is not system build] ********************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "multiphp_build | bool", "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : Verify work directory exists] ***********************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/var/cache/httpd", "size": 132, "state": "directory", "uid": 0}
TASK [php/build-from-source : Cleanup older PHPs] *********************************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "examined": 7, "files": [{"atime": 1792012910.1166592, "ctime": 1736178227.166585, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 67271848, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1736178227.166585, "nlink": 17, "path": "/var/cache/httpd/php-5.6.40", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, {"atime": 1792012910.5016656, "ctime": 1740000152.6632674, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 167837027, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0775", "mtime": 1740000152.6632674, "nlink": 19, "path": "/var/cache/httpd/php-7.4.33", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": true, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, {"atime": 1792012911.3066788, "ctime": 1744133440.412262, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 33999971, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1744133440.412262, "nlink": 20, "path": "/var/cache/httpd/php-8.2.28", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, {"atime": 1793019452.0667484, "ctime": 1793019451.8227441, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 71867447, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1793019451.8227441, "nlink": 18, "path": "/var/cache/httpd/php-8.0.30", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, {"atime": 1792679753.374269, "ctime": 1792679753.1042643, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 33563837, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1792679753.1042643, "nlink": 19, "path": "/var/cache/httpd/php-8.4.27", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}], "matched": 5, "msg": "All paths examined", "skipped_paths": {}}
TASK [php/build-from-source : Remove older PHPs] **********************************************************************************************************************************************************************************************************************
skipping: [localhost] => (item=Removing php-5.6.40) => {"ansible_loop_var": "item", "changed": false, "false_condition": "remove_all_versions | bool or -1 != item.path.find('php-%s.' % lookup('vars', '__php_version') | regex_replace('^(\\\\d+\\.\\\\d+)\\\\..*$', '\\\\1'))", "item": {"atime": 1792012910.1166592, "ctime": 1736178227.166585, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 67271848, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1736178227.166585, "nlink": 17, "path": "/var/cache/httpd/php-5.6.40", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item=Removing php-7.4.33) => {"ansible_loop_var": "item", "changed": false, "false_condition": "remove_all_versions | bool or -1 != item.path.find('php-%s.' % lookup('vars', '__php_version') | regex_replace('^(\\\\d+\\.\\\\d+)\\\\..*$', '\\\\1'))", "item": {"atime": 1792012910.5016656, "ctime": 1740000152.6632674, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 167837027, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0775", "mtime": 1740000152.6632674, "nlink": 19, "path": "/var/cache/httpd/php-7.4.33", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": true, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item=Removing php-8.2.28) => {"ansible_loop_var": "item", "changed": false, "false_condition": "remove_all_versions | bool or -1 != item.path.find('php-%s.' % lookup('vars', '__php_version') | regex_replace('^(\\\\d+\\.\\\\d+)\\\\..*$', '\\\\1'))", "item": {"atime": 1792012911.3066788, "ctime": 1744133440.412262, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 33999971, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1744133440.412262, "nlink": 20, "path": "/var/cache/httpd/php-8.2.28", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item=Removing php-8.0.30) => {"ansible_loop_var": "item", "changed": false, "false_condition": "remove_all_versions | bool or -1 != item.path.find('php-%s.' % lookup('vars', '__php_version') | regex_replace('^(\\\\d+\\.\\\\d+)\\\\..*$', '\\\\1'))", "item": {"atime": 1793019452.0667484, "ctime": 1793019451.8227441, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 71867447, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1793019451.8227441, "nlink": 18, "path": "/var/cache/httpd/php-8.0.30", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item=Removing php-8.4.27) => {"ansible_loop_var": "item", "changed": false, "false_condition": "remove_all_versions | bool or -1 != item.path.find('php-%s.' % lookup('vars', '__php_version') | regex_replace('^(\\\\d+\\.\\\\d+)\\\\..*$', '\\\\1'))", "item": {"atime": 1792679753.374269, "ctime": 1792679753.1042643, "dev": 2051, "gid": 65534, "gr_name": "nobody", "inode": 33563837, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1792679753.1042643, "nlink": 19, "path": "/var/cache/httpd/php-8.4.27", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => {"changed": false, "msg": "All items skipped"}
TASK [php/build-from-source : Remove PHP configuration directory] *****************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "remove_only | bool and multiphp_build", "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : Include apxs] ***************************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "php_has_isapi", "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : Reduce max concurrent jobs] *************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "ansible_memory_mb.nocache.free < 128 or ansible_memory_mb.nocache.free < 512*(compile_max_jobs | int) and __php_version is version('8.0', '>=')", "skip_reason": "Conditional result was False"}
TASK [Attach temporary swap] ******************************************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "(ansible_memory_mb.nocache.free < 128 or ansible_memory_mb.nocache.free < 1500) and __php_version is version('8.0', '>=')", "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : Flag swap handler] **********************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "(ansible_memory_mb.nocache.free < 128 or ansible_memory_mb.nocache.free < 1500) and __php_version is version('8.0', '>=')", "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : set_fact] *******************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"force_module_rebuild": true}, "changed": false}
TASK [php/build-from-source : include_tasks] **************************************************************************************************************************************************************************************************************************
included: /usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/build-php.yml for localhost
TASK [php/build-from-source : stat] ***********************************************************************************************************************************************************************************************************************************
ok: [localhost] => {"changed": false, "stat": {"atime": 1792688999.8522334, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "binary", "ctime": 1792688999.609229, "dev": 2051, "device_type": 0, "executable": true, "exists": true, "gid": 65534, "gr_name": "nobody", "inode": 134542250, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/directory", "mode": "0755", "mtime": 1792688999.609229, "nlink": 19, "path": "/var/cache/httpd/php-8.1.34", "pw_name": "nobody", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "version": "1390740718", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}}
TASK [php/build-from-source : Download PHP 8.1.34] ********************************************************************************************************************************************************************************************************************
skipping: [localhost] => {"changed": false, "false_condition": "not st.stat.exists or remove_all_versions", "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : Apply per-version patches] **************************************************************************************************************************************************************************************************************
included: /usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/apply-patches.yml for localhost
TASK [php/build-from-source : Enumerate all patches] ******************************************************************************************************************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"php_patch_candidates": ["0001-PHP-8.1-CVE-2026-109618-109619-RCE.patch", "0001-PHP-8.1-CVE-2026-109618-109619-RCE.patch"]}, "changed": false}
TASK [php/build-from-source : Apply PHP 8.1.34 patches] ***************************************************************************************************************************************************************************************************************
ok: [localhost] => (item=Apply 0001-PHP-8.1-CVE-2026-109618-109619-RCE.patch) => {"ansible_loop_var": "patch", "changed": false, "patch": "0001-PHP-8.1-CVE-2026-109618-109619-RCE.patch"}
TASK [php/build-from-source : Configure PHP 8.1.34] *******************************************************************************************************************************************************************************************************************