The LiteSpeed SAPI App should have unique name you should also set a proper unique socket address used by the external application Syntax: IPv4 or IPV6 address:port or UDS://path
You should also specify whether you want the web server to start the application automatically - choose YES option so that it gets started through CGI Daemon. This always athe default setting if you changed this revert it back to YES
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.
The fix would be installing a couple of libraries manually and this would be error prone and a waste of valuable time.
Reset your server to have a clean os with no webservers, databases, php.
Install latest cyberpanel on ubuntu 20.04 then use the recommended steps to install the php version of your choice. Please if you can avoid installing from source.
$ cd /tmp
$ wget https://www.php.net/distributions/php-8.2.4.tar.gz
$ tar -xf php-8.2.4.tar.gz
$ cd php-8.2.4
## It is absolutely required to run ./configure with --with-litespeed since we have to build PHP with LSAPI
$ ./configure '--prefix=/usr/local/lsws/lsphp82' '--with-libdir=lib64' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--with-curl' '--with-openssl' '--with-gettext' '--with-mcrypt' '--enable-mbstring=all' '--enable-mbregex' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--enable-ftp' '--with-imap=/usr' '--with-imap-ssl' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--enable-pcntl' '--with-freetype-dir=/usr' '--with-pdo-mysql=/usr' '--with-litespeed'
$ make
$ make install
Then configure PHP 8.2 in WebAdmin console to be used as SAPI app
Those are not my instructions those are the official instructions on litespeed website - the only change I added was the build-essential mistake they did.
I have used the steps so many times. Kindly check with your provider to give you a clean os preferably ubuntu 20.04
You also installed php in two different ways which conflicts. Check you followed instructions by @sajetek_developer which work too and the instructions I gave @fayssal . @sajetek_developer suggests you
If you choose to install from source you are basically on your own meaning errors will follow you depending on what you have installed, network issues etc.
I tested on a new system of different OS versions, the errors are the same. Ubuntu 18, Ubuntu 20, Centro 7 and 8
Based on the conclusions, your instruction is not correct. Or am I doing something wrong?