php 8.2 installation failed

chlling_bird

New member
Joined
Feb 6, 2024
Messages
4
I tried to install PHP 8.2 , but encountered installation issues.
here is the log:
/usr/local/directadmin/custombuild/php-8.2.4/sapi/litespeed/lsapi_main.c:124:9: error: too many arguments to function 'php_module_startup'
if (php_module_startup(sapi_module, NULL, 0)==FAILURE) {
^~~~~~~~~~~~~~~~~~
In file included from /usr/local/directadmin/custombuild/php-8.2.4/sapi/litespeed/lsapi_main.c:21:
/usr/local/directadmin/custombuild/php-8.2.4/main/php_main.h:28:20: note: declared here
PHPAPI zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_module);
^~~~~~~~~~~~~~~~~~
/usr/local/directadmin/custombuild/php-8.2.4/sapi/litespeed/lsapi_main.c: In function 'main':
/usr/local/directadmin/custombuild/php-8.2.4/sapi/litespeed/lsapi_main.c:1817:9: error: too many arguments to function 'php_module_startup'
if (php_module_startup(&lsapi_sapi_module, &litespeed_module_entry, 1) == FAILURE) {
^~~~~~~~~~~~~~~~~~
In file included from /usr/local/directadmin/custombuild/php-8.2.4/sapi/litespeed/lsapi_main.c:21:
/usr/local/directadmin/custombuild/php-8.2.4/main/php_main.h:28:20: note: declared here
PHPAPI zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_module);
^~~~~~~~~~~~~~~~~~
make: *** [Makefile:777: sapi/litespeed/lsapi_main.lo] Error 1
make: *** Waiting for unfinished jobs....
*** The make has failed. Exiting...
 
you need to update OS packages and DA to latest stable versions, currently you trying to install old PHP
 
Back
Top