Hi everybody!
I'm hoping to find a solution with php phalcon extension installation.
What is happening at the moment:
I'm running CentOS 7 + LSWS/LiteSpeed Web Server + DirectAdmin + WHMCS, and using LSPHP as PHP handlers. I'm having multiple versions of PHP though.
I have LSPHP 5.6, 7.4, 8.0, 8.1. The actual handlers are set up correctly and running well, I can also switch between any of them in DirectAdmin.
Currently, the primary PHP version for the WHMCS is 7.4.
The problem:
I'm trying to install phalcon extention using CustomBuilder2.0 offered by DirectAdmin and every time I'm trying to build it, it's throwing an error. See the installation log below:
As you can see, phalcon won't install. Because of that, every single time I'm getting into Admin panel of WHMCS, it's throwing me an error code that you can see below:
For additional assistance, please reference the WHMCS TroubleShooting Guide »
Whoops\Exception\ErrorException: PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so (/usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so: cannot open shared object file: No such file or directory), /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so (/usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so: cannot open shared object file: No such file or directory)) in Unknown:0
Stack trace:
#0 /mnt/disks/server-storage/webhost/hostmost/domains/webhostmost.com/public_html/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError()
#1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown()
#2 {main}
It's related to phalcon extension.
What has been done:
I did everything possible that I was able to find through official guidelines or any other information on the internet.
I did this: https://forum.directadmin.com/threads/installing-phalcon-with-custombuild-2-0.49346/ - it didn't work.
I followed the original guide from the actual Phalcon website: https://docs.phalcon.io/4.0/en/installation - it didn't work.
I also upgraded GCC7 from GCC4 (For building phalcon extention, GCC5 minimum is required.
If I'm checking the php -v via terminal, it's throwing this log:
I'm lost and I just don't know what else needs to be done.
Please, help! I can't proceed any further until this problem is fixed.
Thank you!
I'm hoping to find a solution with php phalcon extension installation.
What is happening at the moment:
I'm running CentOS 7 + LSWS/LiteSpeed Web Server + DirectAdmin + WHMCS, and using LSPHP as PHP handlers. I'm having multiple versions of PHP though.
I have LSPHP 5.6, 7.4, 8.0, 8.1. The actual handlers are set up correctly and running well, I can also switch between any of them in DirectAdmin.
Currently, the primary PHP version for the WHMCS is 7.4.
The problem:
I'm trying to install phalcon extention using CustomBuilder2.0 offered by DirectAdmin and every time I'm trying to build it, it's throwing an error. See the installation log below:
- Executing /usr/local/directadmin/plugins/custombuild/admin/build php_phalcon...
- Installing psr-1.2.0 PHP extension for PHP 74...
- Found /usr/local/directadmin/custombuild/psr-1.2.0.tgz
- Extracting /usr/local/directadmin/custombuild/psr-1.2.0.tgz...
- Configuring for:
- PHP Api Version: 20190902
- Zend Module Api No: 20190902
- Zend Extension Api No: 320190902
- checking for grep that handles long lines and -e... /bin/grep
- checking for egrep... /bin/grep -E
- checking for a sed that does not truncate output... /bin/sed
- checking for pkg-config... /bin/pkg-config
- checking pkg-config is at least version 0.9.0... yes
- checking for cc... cc
- checking whether the C compiler works... yes
- checking for C compiler default output file name... a.out
- checking for suffix of executables...
- checking whether we are cross compiling... no
- checking for suffix of object files... o
- checking whether we are using the GNU C compiler... yes
- checking whether cc accepts -g... yes
- checking for cc option to accept ISO C89... none needed
- checking how to run the C preprocessor... cc -E
- checking for icc... no
- checking for suncc... no
- checking for system library directory... lib
- checking if compiler supports -R... no
- checking if compiler supports -Wl,-rpath,... yes
- checking build system type... x86_64-pc-linux-gnu
- checking host system type... x86_64-pc-linux-gnu
- checking target system type... x86_64-pc-linux-gnu
- checking for PHP prefix... /usr/local/php74
- checking for PHP includes... -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib
- checking for PHP extension directory... /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902
- checking for PHP installed headers prefix... /usr/local/php74/include/php
- checking if debug is enabled... no
- checking if zts is enabled... no
- checking for gawk... gawk
- checking whether to enable psr support... yes, shared
- checking for a sed that does not truncate output... /bin/sed
- checking for ld used by cc... /bin/ld
- checking if the linker (/bin/ld) is GNU ld... yes
- checking for /bin/ld option to reload object files... -r
- checking for BSD-compatible nm... /bin/nm -B
- checking whether ln -s works... yes
- checking how to recognize dependent libraries... pass_all
- checking for ANSI C header files... yes
- checking for sys/types.h... yes
- checking for sys/stat.h... yes
- checking for stdlib.h... yes
- checking for string.h... yes
- checking for memory.h... yes
- checking for strings.h... yes
- checking for inttypes.h... yes
- checking for stdint.h... yes
- checking for unistd.h... yes
- checking dlfcn.h usability... yes
- checking dlfcn.h presence... yes
- checking for dlfcn.h... yes
- checking the maximum length of command line arguments... 1572864
- checking command to parse /bin/nm -B output from cc object... ok
- checking for objdir... .libs
- checking for ar... ar
- checking for ranlib... ranlib
- checking for strip... strip
- checking if cc supports -fno-rtti -fno-exceptions... no
- checking for cc option to produce PIC... -fPIC
- checking if cc PIC flag -fPIC works... yes
- checking if cc static flag -static works... no
- checking if cc supports -c -o file.o... yes
- checking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
- checking whether -lc should be explicitly linked in... no
- checking dynamic linker characteristics... GNU/Linux ld.so
- checking how to hardcode library paths into programs... immediate
- checking whether stripping libraries is possible... yes
- checking if libtool supports shared libraries... yes
- checking whether to build shared libraries... yes
- checking whether to build static libraries... no
- creating libtool
- appending configuration tag "CXX" to libtool
- configure: patching config.h.in
- configure: creating ./config.status
- config.status: creating config.h
- Trying to make psr-1.2.0 PHP extension...
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/php_psr.c -o php_psr.lo
- mkdir .libs
- cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/php_psr.c -fPIC -DPIC -o .libs/php_psr.o
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_cache.c -o psr_cache.lo
- cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_cache.c -fPIC -DPIC -o .libs/psr_cache.o
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_container.c -o psr_container.lo
- cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_container.c -fPIC -DPIC -o .libs/psr_container.o
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_http_message.c -o psr_http_message.lo
- cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_http_message.c -fPIC -DPIC -o .libs/psr_http_message.o
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_link.c -o psr_link.lo
- cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_link.c -fPIC -DPIC -o .libs/psr_link.o
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_log.c -o psr_log.lo
- cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_log.c -fPIC -DPIC -o .libs/psr_log.o
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_simple_cache.c -o psr_simple_cache.lo
- cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_simple_cache.c -fPIC -DPIC -o .libs/psr_simple_cache.o
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_http_server_handler.c -o psr_http_server_handler.lo
- cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_http_server_handler.c -fPIC -DPIC -o .libs/psr_http_server_handler.o
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_http_server_middleware.c -o psr_http_server_middleware.lo
- cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_http_server_middleware.c -fPIC -DPIC -o .libs/psr_http_server_middleware.o
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_http_factory.c -o psr_http_factory.lo
- cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_http_factory.c -fPIC -DPIC -o .libs/psr_http_factory.o
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_http_client.c -o psr_http_client.lo
- cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_http_client.c -fPIC -DPIC -o .libs/psr_http_client.o
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_event_dispatcher.c -o psr_event_dispatcher.lo
- cc -I. -I/usr/local/directadmin/custombuild/psr-1.2.0 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/psr-1.2.0/psr_event_dispatcher.c -fPIC -DPIC -o .libs/psr_event_dispatcher.o
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/psr-1.2.0/include -I/usr/local/directadmin/custombuild/psr-1.2.0/main -I/usr/local/directadmin/custombuild/psr-1.2.0 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o psr.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/local/directadmin/custombuild/psr-1.2.0/modules php_psr.lo psr_cache.lo psr_container.lo psr_http_message.lo psr_link.lo psr_log.lo psr_simple_cache.lo psr_http_server_handler.lo psr_http_server_middleware.lo psr_http_factory.lo psr_http_client.lo psr_event_dispatcher.lo
- cc -shared .libs/php_psr.o .libs/psr_cache.o .libs/psr_container.o .libs/psr_http_message.o .libs/psr_link.o .libs/psr_log.o .libs/psr_simple_cache.o .libs/psr_http_server_handler.o .libs/psr_http_server_middleware.o .libs/psr_http_factory.o .libs/psr_http_client.o .libs/psr_event_dispatcher.o -Wl,-soname -Wl,psr.so -o .libs/psr.so
- creating psr.la
- (cd .libs && rm -f psr.la && ln -s ../psr.la psr.la)
- /bin/sh /usr/local/directadmin/custombuild/psr-1.2.0/libtool --mode=install cp ./psr.la /usr/local/directadmin/custombuild/psr-1.2.0/modules
- cp ./.libs/psr.so /usr/local/directadmin/custombuild/psr-1.2.0/modules/psr.so
- cp ./.libs/psr.lai /usr/local/directadmin/custombuild/psr-1.2.0/modules/psr.la
- PATH="$PATH:/sbin" ldconfig -n /usr/local/directadmin/custombuild/psr-1.2.0/modules
- ----------------------------------------------------------------------
- Libraries have been installed in:
- /usr/local/directadmin/custombuild/psr-1.2.0/modules
- If you ever happen to want to link against installed libraries
- in a given directory, LIBDIR, you must either use libtool, and
- specify the full pathname of the library, or use the `-LLIBDIR'
- flag during linking and do at least one of the following:
- - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
- during execution
- - add LIBDIR to the `LD_RUN_PATH' environment variable
- during linking
- - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- - have your system administrator add LIBDIR to `/etc/ld.so.conf'
- See any operating system documentation about shared libraries for
- more information, such as the ld(1) and ld.so(8) manual pages.
- ----------------------------------------------------------------------
- Build complete.
- Don't forget to run 'make test'.
- Make complete
- Installing shared extensions: /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/
- Installing header files: /usr/local/php74/include/php/
- find . -name \*.gcno -o -name \*.gcda | xargs rm -f
- find . -name \*.lo -o -name \*.o | xargs rm -f
- find . -name \*.la -o -name \*.a | xargs rm -f
- find . -name \*.so | xargs rm -f
- find . -name .libs -a -type d|xargs rm -rf
- rm -f libphp.la modules/* libs/*
- There is no ionCube loader available for PHP 8.0.
- There is no phalcon available for PHP 8.0.
- There is no ionCube loader available for PHP 8.1.
- There is no phalcon available for PHP 8.1.
- There is no igbinary available for PHP 5.6.
- There is no phalcon available for PHP 5.6.
- There is no snuffleupagus available for PHP 5.6.
- psr 1.2.0 PHP extension has been installed successfully.
- Installing phalcon-4.1.2 PHP extension for PHP 74...
- Found /usr/local/directadmin/custombuild/phalcon-4.1.2.tgz
- Extracting /usr/local/directadmin/custombuild/phalcon-4.1.2.tgz...
- Configuring for:
- PHP Api Version: 20190902
- Zend Module Api No: 20190902
- Zend Extension Api No: 320190902
- checking for grep that handles long lines and -e... /bin/grep
- checking for egrep... /bin/grep -E
- checking for a sed that does not truncate output... /bin/sed
- checking for pkg-config... /bin/pkg-config
- checking pkg-config is at least version 0.9.0... yes
- checking for cc... cc
- checking whether the C compiler works... yes
- checking for C compiler default output file name... a.out
- checking for suffix of executables...
- checking whether we are cross compiling... no
- checking for suffix of object files... o
- checking whether we are using the GNU C compiler... yes
- checking whether cc accepts -g... yes
- checking for cc option to accept ISO C89... none needed
- checking how to run the C preprocessor... cc -E
- checking for icc... no
- checking for suncc... no
- checking for system library directory... lib
- checking if compiler supports -R... no
- checking if compiler supports -Wl,-rpath,... yes
- checking build system type... x86_64-pc-linux-gnu
- checking host system type... x86_64-pc-linux-gnu
- checking target system type... x86_64-pc-linux-gnu
- checking for PHP prefix... /usr/local/php74
- checking for PHP includes... -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib
- checking for PHP extension directory... /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902
- checking for PHP installed headers prefix... /usr/local/php74/include/php
- checking if debug is enabled... no
- checking if zts is enabled... no
- checking for gawk... gawk
- checking whether to enable phalcon... yes, shared
- checking whether HAVE_BUNDLED_PCRE is declared... yes
- checking for ext/pcre/php_pcre.h... yes
- checking whether HAVE_JSON is declared... yes
- checking for ext/json/php_json.h... yes
- checking for a sed that does not truncate output... /bin/sed
- checking for ld used by cc... /bin/ld
- checking if the linker (/bin/ld) is GNU ld... yes
- checking for /bin/ld option to reload object files... -r
- checking for BSD-compatible nm... /bin/nm -B
- checking whether ln -s works... yes
- checking how to recognize dependent libraries... pass_all
- checking for ANSI C header files... yes
- checking for sys/types.h... yes
- checking for sys/stat.h... yes
- checking for stdlib.h... yes
- checking for string.h... yes
- checking for memory.h... yes
- checking for strings.h... yes
- checking for inttypes.h... yes
- checking for stdint.h... yes
- checking for unistd.h... yes
- checking dlfcn.h usability... yes
- checking dlfcn.h presence... yes
- checking for dlfcn.h... yes
- checking the maximum length of command line arguments... 1572864
- checking command to parse /bin/nm -B output from cc object... ok
- checking for objdir... .libs
- checking for ar... ar
- checking for ranlib... ranlib
- checking for strip... strip
- checking if cc supports -fno-rtti -fno-exceptions... no
- checking for cc option to produce PIC... -fPIC
- checking if cc PIC flag -fPIC works... yes
- checking if cc static flag -static works... no
- checking if cc supports -c -o file.o... yes
- checking whether the cc linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
- checking whether -lc should be explicitly linked in... no
- checking dynamic linker characteristics... GNU/Linux ld.so
- checking how to hardcode library paths into programs... immediate
- checking whether stripping libraries is possible... yes
- checking if libtool supports shared libraries... yes
- checking whether to build shared libraries... yes
- checking whether to build static libraries... no
- creating libtool
- appending configuration tag "CXX" to libtool
- configure: patching config.h.in
- configure: creating ./config.status
- config.status: creating config.h
- Trying to make phalcon-4.1.2 PHP extension...
- /bin/sh /usr/local/directadmin/custombuild/phalcon-4.1.2/libtool --mode=compile cc -I. -I/usr/local/directadmin/custombuild/phalcon-4.1.2 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/phalcon-4.1.2/include -I/usr/local/directadmin/custombuild/phalcon-4.1.2/main -I/usr/local/directadmin/custombuild/phalcon-4.1.2 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/phalcon-4.1.2/phalcon.zep.c -o phalcon.lo
- mkdir .libs
- cc -I. -I/usr/local/directadmin/custombuild/phalcon-4.1.2 -DPHP_ATOM_INC -I/usr/local/directadmin/custombuild/phalcon-4.1.2/include -I/usr/local/directadmin/custombuild/phalcon-4.1.2/main -I/usr/local/directadmin/custombuild/phalcon-4.1.2 -I/usr/local/php74/include/php -I/usr/local/php74/include/php/main -I/usr/local/php74/include/php/TSRM -I/usr/local/php74/include/php/Zend -I/usr/local/php74/include/php/ext -I/usr/local/php74/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/directadmin/custombuild/phalcon-4.1.2/phalcon.zep.c -fPIC -DPIC -o .libs/phalcon.o
- cc: internal compiler error: Killed (program cc1)
- Please submit a full bug report,
- with preprocessed source if appropriate.
- See <http://bugzilla.redhat.com/bugzilla> for instructions.
- make: *** [phalcon.lo] Error 1
- Done!
As you can see, phalcon won't install. Because of that, every single time I'm getting into Admin panel of WHMCS, it's throwing me an error code that you can see below:
Oops!
Something went wrong and we couldn't process your request.
Please go back to the previous page and try again.For additional assistance, please reference the WHMCS TroubleShooting Guide »
Whoops\Exception\ErrorException: PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so (/usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so: cannot open shared object file: No such file or directory), /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so (/usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so: cannot open shared object file: No such file or directory)) in Unknown:0
Stack trace:
#0 /mnt/disks/server-storage/webhost/hostmost/domains/webhostmost.com/public_html/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError()
#1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown()
#2 {main}
It's related to phalcon extension.
What has been done:
I did everything possible that I was able to find through official guidelines or any other information on the internet.
I did this: https://forum.directadmin.com/threads/installing-phalcon-with-custombuild-2-0.49346/ - it didn't work.
I followed the original guide from the actual Phalcon website: https://docs.phalcon.io/4.0/en/installation - it didn't work.
I also upgraded GCC7 from GCC4 (For building phalcon extention, GCC5 minimum is required.
If I'm checking the php -v via terminal, it's throwing this log:
PHP Warning: PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so (/usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so: cannot open shared object file: No such file or directory), /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so (/usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so (/usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so: cannot open shared object file: No such file or directory), /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so (/usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.4.30 (cli) (built: Jun 20 2022 16:01:29) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader + ionCube24 v11.0.1, Copyright (c) 2002-2022, by ionCube Ltd.
with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies
PHP Warning: PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so (/usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so: cannot open shared object file: No such file or directory), /usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so (/usr/local/php74/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.4.30 (cli) (built: Jun 20 2022 16:01:29) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader + ionCube24 v11.0.1, Copyright (c) 2002-2022, by ionCube Ltd.
with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies
I'm lost and I just don't know what else needs to be done.
Please, help! I can't proceed any further until this problem is fixed.
Thank you!