I've read the similar topics on LSAPI but no joy. I'm trying it out as I've read it's lighter than PHP-FPM.
I was trying for months to get the FastCGI PHP /status to display without success, just 503 and 403 errors so I could monitor it using Netdata to try and tune the pools/workers/children etc.
I tried PHP-FPM but it absolutely killed my 48 core CentOS 7.6 cloud VPS which has access to 6GB RAM (3GB and another 3GB of burstable ram), despite my hosting only 4 low use sites based around Invision Community 4.4.7, and 2 quiet Wordpress installs, and about 3 others not used at all. It would get very unstable if I got close to needing the extra 3GB but apparently it never goes into it much.
I was and still am using Redis (set to 50MB then 100MB cache) and Zend Opcache.
After switching to LSAPI handler yesterday on PHP 7.3.11 (and now 12) with CentOS 7.6 and latest v84 of WHM CPanel, all of my VPS' sites are down. I've reinstalled PHP and CPanel until I'm blue.
The docs suggest all you need to do is install the Apache and PHP modules, then switch the handler I set up a Phpinfo which states its running LiteSpeed v7.6 but most of the modules are not listed like Mysqli.
It says:
Under environment it says:
I found a reference saying to place this in the Previrtual global conf in the Configuration section in WHM but it doesn't work, and if needed, why doesn't WHM/EA4i install it?
I now have the PHP modules in both:
/opt/cpanel/ea-php73/root/etc/php.d.modules
/opt/cpanel/ea-php73/root/usr/lib64/php/modules
I reported it my host over 24hrs ago, but no response yet.
If I switch to any other PHP handler, the sites come back.
So why doesn't it work on LSAPI handler? What should I try next?
I was trying for months to get the FastCGI PHP /status to display without success, just 503 and 403 errors so I could monitor it using Netdata to try and tune the pools/workers/children etc.
I tried PHP-FPM but it absolutely killed my 48 core CentOS 7.6 cloud VPS which has access to 6GB RAM (3GB and another 3GB of burstable ram), despite my hosting only 4 low use sites based around Invision Community 4.4.7, and 2 quiet Wordpress installs, and about 3 others not used at all. It would get very unstable if I got close to needing the extra 3GB but apparently it never goes into it much.
I was and still am using Redis (set to 50MB then 100MB cache) and Zend Opcache.
After switching to LSAPI handler yesterday on PHP 7.3.11 (and now 12) with CentOS 7.6 and latest v84 of WHM CPanel, all of my VPS' sites are down. I've reinstalled PHP and CPanel until I'm blue.
The docs suggest all you need to do is install the Apache and PHP modules, then switch the handler I set up a Phpinfo which states its running LiteSpeed v7.6 but most of the modules are not listed like Mysqli.
It says:
System | Linux .com 3.10.0-042stab138.1 #1 SMP Wed May 15 09:33:10 MSK 2019 x86_64 |
Configure Command | './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/opt/cpanel/ea-php73/root/usr' '--exec-prefix=/opt/cpanel/ea-php73/root/usr' '--bindir=/opt/cpanel/ea-php73/root/usr/bin' '--sbindir=/opt/cpanel/ea-php73/root/usr/sbin' '--sysconfdir=/opt/cpanel/ea-php73/root/etc' '--datadir=/opt/cpanel/ea-php73/root/usr/share' '--includedir=/opt/cpanel/ea-php73/root/usr/include' '--libdir=/opt/cpanel/ea-php73/root/usr/lib64' '--libexecdir=/opt/cpanel/ea-php73/root/usr/libexec' '--localstatedir=/opt/cpanel/ea-php73/root/usr/var' '--sharedstatedir=/opt/cpanel/ea-php73/root/usr/com' '--mandir=/opt/cpanel/ea-php73/root/usr/share/man' '--infodir=/opt/cpanel/ea-php73/root/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/cpanel/ea-php73/root/etc' '--with-config-file-scan-dir=/opt/cpanel/ea-php73/root/etc/php.d' '--disable-debug' '--with-password-argon2=/opt/cpanel/libargon2' '--with-pic' '--without-pear' '--with-bz2' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl=/opt/cpanel/ea-openssl' '--with-openssl-dir=/opt/cpanel/ea-openssl' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-kerberos' '--enable-shmop' '--with-libxml-dir=/opt/cpanel/ea-libxml2' '--with-system-tzdata' '--with-mhash' '--with-apxs2=/usr/bin/apxs' '--libdir=/opt/cpanel/ea-php73/root/usr/lib64/php' '--with-litespeed' '--without-mysqli' '--disable-pdo' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-opcache' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite3' '--disable-phar' '--disable-fileinfo' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-xml' '--disable-simplexml' '--disable-exif' '--without-gettext' '--without-iconv' '--disable-ftp' '--without-bz2' '--disable-ctype' '--disable-shmop' '--disable-sockets' '--disable-tokenizer' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem' '--without-gmp' '--disable-calendar' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -Wno-pointer-sign' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' |
extension_dir | /opt/cpanel/ea-php73/root/usr/lib64/php/modules | /opt/cpanel/ea-php73/root/usr/lib64/php/modules |
Configuration File (php.ini) Path | /opt/cpanel/ea-php73/root/etc |
Loaded Configuration File | /php.ini |
include_path | .:/opt/cpanel/ea-php73/root/usr/share/pear | .:/opt/cpanel/ea-php73/root/usr/share/pear |
Under environment it says:
LSPHP_ENABLE_USER_INI | on |
PHPRC | / |
PATH | /usr/local/bin:/usr/bin:/bin |
TEMP | /tmp |
TMP | /tmp |
TMPDIR | /tmp |
PWD | / |
I found a reference saying to place this in the Previrtual global conf in the Configuration section in WHM but it doesn't work, and if needed, why doesn't WHM/EA4i install it?
I now have the PHP modules in both:
/opt/cpanel/ea-php73/root/etc/php.d.modules
/opt/cpanel/ea-php73/root/usr/lib64/php/modules
I reported it my host over 24hrs ago, but no response yet.
If I switch to any other PHP handler, the sites come back.
So why doesn't it work on LSAPI handler? What should I try next?