apiscp install failed with Timeout when waiting for file /usr/local/apnscp/storage/run/apnscp.sock

Hello.
Trial installation failed on freshly installed AlmaLinux release 8.8 (Sapphire Caracal) and Rocky Linux release 8.8 (Green Obsidian)

Failed on TASK [apnscp/create-admin : shell]

In systemctl status apnscp.service got this error:

Aug 25 04:19:08 localhost.localdomain httpd[7717]: httpd: Syntax error on line 82 of /usr/local/apnscp/config/httpd.conf: Cannot load sys/httpd/private/modules/libphp7.so: cannot open shared object file: No such file or directory

And dir /usr/local/apnscp/sys/httpd/private/modules/ is empty.

That module load is legacy code when both PHP7 and PHP8 were available. PHP8 Apache module will be used when has_low_memory is enabled otherwise PHP-FPM is used.

From what I’m seeing (build #1007) it’s a segfault in ionCube. A new version was released 8/24. Are you seeing this in dmesg as well after running /usr/local/apnscp/bin/apnscpd -f directly?

[ 4979.850029] traps: apnscp_php[443838] general protection fault ip:7f99bebbae27 sp:7ffdd521e3f0 error:0 in ioncube_loader_lin_8.1.so[7f99beb87000+167000]

If so, likely linked back to this change:

It also includes an improvement to the handling of PHP’s reflection methods
so the files applying reflection do not need to be encoded themselves for PHP 7.1+.

Updated installer code to use the previous ionCube release until this is sorted out. rm -rf /usr/local/apnscp, then run installer again.