Strange problem in build php in directadmin using LSAPI

Lite

Verified User
Joined
Feb 1, 2013
Messages
10
Hello
I use Litespeed in directadmin as plugin
i want to Build Matching PHP Binary , so i enter this command in ssh :

Code:
/usr/local/directadmin/plugins/litespeed/admin/build_lsphp

and i receive this error :

Code:
[root@server]# /usr/local/directadmin/plugins/litespeed/admin/build_lsphp
work dir = /usr/local/directadmin/custombuild
php ver = php-5.2.17
build matching php using LSAPI
do lsphp
Cannot install one PHP version as CLI and CGI.

Here is my options.conf



Code:
#PHP settings. default_php possible values - 4 or 5, php5_ver - 5.2, 5.3 or 5.4
default_php=5
php5_ver=5.2
php4_cli=no
php4_cgi=no
php5_cli=no
php5_cgi=yes
ioncube=no
zend=no
#Possible values - recommended or dist
php_ini_type=recommended

i use php cgi and i want to build matching php , but i receive this error
i search a lot but i can't find solution
please help me how can i solve this problem ?
 
PHP build file has the bellow code:
Code:
elif [ "${PHP6_CLI_OPT}" = "yes" ] && [ "${PHP6_CGI_OPT}" = "yes" ] || [ "${PHP5_CLI_OPT}" = "yes" ] && [ "${PHP5_CGI_OPT}" = "yes" ]; then 			echo "Cannot install one PHP version as CLI and CGI." 			exit

So you must installed one of the PHP6_CGI_OPT, PHP6_CLI_OPT, PHP5_CLI_OPT or PHP5_CGI_OPT, for fix the issue you must uninstall it.

check this link.
 
Back
Top