Issue php83 Litespeed Enterprise

#1
Hi. We are trying to switch from Nginx + Varnish to litespeed so we can test litespeed cache with a magento 2.4.7 store we have
Web server is installed, php83 compiled:

Code:
'./configure' '--prefix=/usr/local/lsws/lsphp8' '--with-mysqli' '--with-zlib' '--enable-gd' '--enable-shmop' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-mbstring' '--with-iconv' '--with-pdo-mysql' '--enable-ftp' '--with-zip' '--with-curl' '--enable-soap' '--enable-xml' '--with-openssl' '--enable-bcmath' '--enable-intl' '--enable-apcu' '--with-imagick' '--enable-imap' '--enable-redis' '--enable-memcached' '--enable-msgpack' '--with-ldap' '--with-snmp' '--with-sqlite3' '--with-pspell' '--with-ioncube' '--with-pgsql' '--with-tidy' '--enable-litespeed'
Vhost is temporary fixed.
Web server is running as user: nobody, group: nogroup as advised. And magento is running with its own user. Litespeed have permissions in all folders.

Problem is that we cannot configure php83 with needed modules to run magento
Now we get error:
Code:
Exception #0 (Laminas\Captcha\Exception\ExtensionNotLoadedException): Image CAPTCHA requires FT fonts support
It seems that this error is coming from phpGD which is already there. Nevertheless magento needs these php modules:

Code:
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
igbinary
imagick
imap
intl
json
ldap
libxml
mailparse
mbstring
mcrypt
msgpack
mysqli
mysqlnd
newrelic
OAuth
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
random
raphf
readline
redis
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
ssh2
standard
swoole
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
yaml
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache
1. Is litespeed compatible with these?
2. What am I missing and cannot compile php83 the right way?

Any help please?
 
Last edited:
#3
@serpent_driver fixed with that article and a little trimming.

For other magento users this is the configuration I used for compiling php83:

Code:
'--with-mysqli' '--with-zlib' '--enable-gd' '--enable-shmop' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-mbstring=all' '--with-iconv' '--with-pdo-mysql' '--enable-ftp' '--with-zip' '--with-curl' '--enable-soap' '--enable-xml' '--with-openssl' '--enable-bcmath' '--enable-intl' '--enable-apcu' '--with-imagick' '--enable-imap' '--enable-redis' '--enable-memcached' '--enable-msgpack' '--with-ldap' '--with-snmp' '--with-sqlite3' '--with-pspell' '--with-ioncube' '--with-pgsql' '--with-tidy' '--with-jpeg=/usr/lib64/' '--with-png=/usr/lib64/' '--with-freetype=/usr/lib64/' '--with-bz2' '--enable-calendar' '--enable-ctype' '--with-exif' '--enable-ffi' '--enable-fileinfo' '--enable-filter' '--enable-gettext' '--with-gmp' '--enable-json' '--with-libxml' '--enable-mailparse' '--enable-mcrypt' '--with-mysqli' '--with-mysqlnd' '--enable-oauth' '--enable-pcntl' '--with-pcre' '--with-pdo' '--with-pdo_mysql' '--with-pdo_sqlite' '--enable-phar' '--enable-posix' '--enable-random' '--with-raphf' '--enable-readline' '--enable-reflection' '--enable-session' '--enable-shmop' '--enable-simplexml' '--enable-sockets' '--enable-sodium' '--enable-spl' '--enable-sqlite3' '--with-ssh2' '--enable-standard' '--enable-sysvmsg' '--with-tidy' '--enable-tokenizer' '--enable-xml' '--enable-xmlreader' '--enable-xmlrpc' '--enable-xmlwriter' '--enable-xsl' '--enable-yaml' '--enable-opcache' '--with-zip' '--with-litespeed'
And I created a symlink in usr/lib64/ for freetype.so

Thanks @serpent_driver
 
Top