PHP73 LSAPI Handler not working properly
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?
| 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 |
| LSPHP_ENABLE_USER_INI | on |
| PHPRC | / |
| PATH | /usr/local/bin:/usr/bin:/bin |
| TEMP | /tmp |
| TMP | /tmp |
| TMPDIR | /tmp |
| PWD | / |
-
Thanks for the detailed information, it's extremely helpful. So before I suggest you make any modifications, what specifically is the error noted in the error logs when you switch the sites to LSAPI? What is the behavior you're seeing? I use cPanel's LSAPI handler with PHP 7.3.12 and opcache with no issues, it should be just a matter of installing the handler and applying it to the PHP version. 0 -
Thanks Lauren, yes that's what I thought! I'll get the logs but basically I think it would work if it could see the all the missing modules not listed in the phpinfo. 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?
Apologies, I got distracted and forgot to additionally paste this code that I ha inserted into the global Pre VirtualHost Include: [CODE=apacheconf] lsapi_enable_user_ini On LSPHP_ProcessGroup on LSPHP_Workers 15
These are the modules I have in the two mentioned directories:[/opt/cpanel/ea-php73/root/etc/php.d.modules]# ll total 21640 drwxr-xr-x 2 root root 4096 Nov 26 21:09 ./ drwxr-xr-x 5 root root 4096 Nov 26 21:15 ../ -rwxr-xr-x 1 root root 36680 Nov 26 21:09 bcmath.so* -rwxr-xr-x 1 root root 5351584 Nov 26 21:09 brotli.so* -rwxr-xr-x 1 root root 24360 Nov 26 21:09 bz2.so* -rwxr-xr-x 1 root root 32440 Nov 26 21:09 calendar.so* -rwxr-xr-x 1 root root 15544 Nov 26 21:09 ctype.so* -rwxr-xr-x 1 root root 99352 Nov 26 21:09 curl.so* -rwxr-xr-x 1 root root 168400 Nov 26 21:09 dom.so* -rwxr-xr-x 1 root root 86056 Nov 26 21:09 exif.so* -rwxr-xr-x 1 root root 5429472 Nov 26 21:09 fileinfo.so* -rwxr-xr-x 1 root root 62008 Nov 26 21:09 ftp.so* -rwxr-xr-x 1 root root 386960 Nov 26 21:09 gd.so* -rwxr-xr-x 1 root root 15664 Nov 26 21:09 gettext.so* -rwxr-xr-x 1 root root 70408 Nov 26 21:09 gmp.so* -rwxr-xr-x 1 root root 40936 Nov 26 21:09 iconv.so* -rw-r--r-- 1 root root 1190336 Nov 26 21:09 imagick.so -rwxr-xr-x 1 root root 95576 Nov 26 21:09 imap.so* -rwxr-xr-x 1 root root 471400 Nov 26 21:09 intl.so* -rwxr-xr-x 1 root root 1339440 Nov 26 21:09 ioncube_loader_lin_7.3.so* -rwxr-xr-x 1 root root 119000 Nov 26 21:09 ixed.7.3.lin* -rwxr-xr-x 1 root root 44792 Nov 26 21:09 json.so* -rwxr-xr-x 1 root root 91104 Nov 26 21:09 ldap.so* -rwxr-xr-x 1 root root 1599488 Nov 26 21:09 mbstring.so* -rwxr-xr-x 1 root root 137256 Nov 26 21:09 mysqli.so* -rwxr-xr-x 1 root root 258104 Nov 26 21:09 mysqlnd.so* -rwxr-xr-x 1 root root 70304 Nov 26 21:09 odbc.so* -rwxr-xr-x 1 root root 488304 Nov 26 21:09 opcache.so* -rwxr-xr-x 1 root root 32600 Nov 26 21:09 pdo_mysql.so* -rwxr-xr-x 1 root root 28624 Nov 26 21:09 pdo_odbc.so* -rwxr-xr-x 1 root root 45592 Nov 26 21:09 pdo_pgsql.so* -rwxr-xr-x 1 root root 112112 Nov 26 21:09 pdo.so* -rwxr-xr-x 1 root root 28944 Nov 26 21:09 pdo_sqlite.so* -rwxr-xr-x 1 root root 141344 Nov 26 21:09 pgsql.so* -rwxr-xr-x 1 root root 273504 Nov 26 21:09 phar.so* -rwxr-xr-x 1 root root 36864 Nov 26 21:09 posix.so* -rw-r--r-- 1 root root 2554872 Nov 26 21:09 redis.so -rwxr-xr-x 1 root root 15648 Nov 26 21:09 shmop.so* -rwxr-xr-x 1 root root 53904 Nov 26 21:09 simplexml.so* -rwxr-xr-x 1 root root 311168 Nov 26 21:09 soap.so* -rwxr-xr-x 1 root root 91576 Nov 26 21:09 sockets.so* -rwxr-xr-x 1 root root 54128 Nov 26 21:09 sqlite3.so* -rwxr-xr-x 1 root root 15776 Nov 26 21:09 sysvmsg.so* -rwxr-xr-x 1 root root 11536 Nov 26 21:09 sysvsem.so* -rwxr-xr-x 1 root root 15728 Nov 26 21:09 sysvshm.so* -rwxr-xr-x 1 root root 53840 Nov 26 21:09 tidy.so* -rwxr-xr-x 1 root root 19864 Nov 26 21:09 tokenizer.so* -rwxr-xr-x 1 root root 32632 Nov 26 21:09 wddx.so* -rwxr-xr-x 1 root root 32888 Nov 26 21:09 xmlreader.so* -rwxr-xr-x 1 root root 84208 Nov 26 21:09 xmlrpc.so* -rwxr-xr-x 1 root root 53768 Nov 26 21:09 xml.so* -rwxr-xr-x 1 root root 49152 Nov 26 21:09 xmlwriter.so* -rwxr-xr-x 1 root root 32888 Nov 26 21:09 xsl.so* -rwxr-xr-x 1 root root 138528 Nov 26 21:09 zip.so*
I ran PHP -v and just got this:php -v Cannot load the ionCube PHP Loader - it was already loaded Cannot load Zend OPcache - it was already loaded PHP Warning: Module 'bcmath' already loaded in Unknown on line 0 PHP Warning: Module 'bz2' already loaded in Unknown on line 0 PHP Warning: Module 'calendar' already loaded in Unknown on line 0 PHP Warning: Module 'ctype' already loaded in Unknown on line 0 PHP Warning: Module 'curl' already loaded in Unknown on line 0 PHP Warning: Module 'dom' already loaded in Unknown on line 0 PHP Warning: Module 'exif' already loaded in Unknown on line 0 PHP Warning: Module 'fileinfo' already loaded in Unknown on line 0 PHP Warning: Module 'ftp' already loaded in Unknown on line 0 PHP Warning: Module 'gd' already loaded in Unknown on line 0 PHP Warning: Module 'gettext' already loaded in Unknown on line 0 PHP Warning: Module 'gmp' already loaded in Unknown on line 0 PHP Warning: Module 'iconv' already loaded in Unknown on line 0 PHP Warning: Module 'imap' already loaded in Unknown on line 0 PHP Warning: Module 'intl' already loaded in Unknown on line 0 PHP Warning: Module 'json' already loaded in Unknown on line 0 PHP Warning: Module 'ldap' already loaded in Unknown on line 0 PHP Warning: Module 'mbstring' already loaded in Unknown on line 0 PHP Warning: Module 'mysqlnd' already loaded in Unknown on line 0 PHP Warning: Module 'odbc' already loaded in Unknown on line 0 PHP Warning: Module 'PDO' already loaded in Unknown on line 0 PHP Warning: Module 'pgsql' already loaded in Unknown on line 0 PHP Warning: Module 'Phar' already loaded in Unknown on line 0 PHP Warning: Module 'posix' already loaded in Unknown on line 0 PHP Warning: Module 'shmop' already loaded in Unknown on line 0 PHP Warning: Module 'SimpleXML' already loaded in Unknown on line 0 PHP Warning: Module 'soap' already loaded in Unknown on line 0 PHP Warning: Module 'sockets' already loaded in Unknown on line 0 PHP Warning: Module 'sqlite3' already loaded in Unknown on line 0 PHP Warning: Module 'sysvmsg' already loaded in Unknown on line 0 PHP Warning: Module 'sysvsem' already loaded in Unknown on line 0 PHP Warning: Module 'sysvshm' already loaded in Unknown on line 0 PHP Warning: Module 'tidy' already loaded in Unknown on line 0 PHP Warning: Module 'tokenizer' already loaded in Unknown on line 0 PHP Warning: Module 'xml' already loaded in Unknown on line 0 PHP Warning: Module 'xmlwriter' already loaded in Unknown on line 0 PHP Warning: Module 'xsl' already loaded in Unknown on line 0 PHP Warning: Module 'zip' already loaded in Unknown on line 0 PHP Warning: Module 'mysqli' already loaded in Unknown on line 0 PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0 PHP Warning: Module 'PDO_ODBC' already loaded in Unknown on line 0 PHP Warning: Module 'pdo_pgsql' already loaded in Unknown on line 0 PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0 PHP Warning: Module 'wddx' already loaded in Unknown on line 0 PHP Warning: Module 'xmlreader' already loaded in Unknown on line 0 PHP Warning: Module 'xmlrpc' already loaded in Unknown on line 0 PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0 PHP Warning: Module 'imagick' already loaded in Unknown on line 0 PHP Warning: Module 'redis' already loaded in Unknown on line 0 PHP 7.3.12 (cli) (built: Nov 25 2019 22:55:36) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.12, Copyright (c) 1998-2018 Zend Technologies with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd. with Zend OPcache v7.3.12, Copyright (c) 1999-2018, by Zend Technologies
If I run php -m I get the same errors but this list of modules below it:php -m Cannot load the ionCube PHP Loader - it was already loaded Cannot load Zend OPcache - it was already loaded PHP Warning: Module 'bcmath' already loaded in Unknown on line 0 PHP Warning: Module 'bz2' already loaded in Unknown on line 0 PHP Warning: Module 'calendar' already loaded in Unknown on line 0 PHP Warning: Module 'ctype' already loaded in Unknown on line 0 PHP Warning: Module 'curl' already loaded in Unknown on line 0 PHP Warning: Module 'dom' already loaded in Unknown on line 0 PHP Warning: Module 'exif' already loaded in Unknown on line 0 PHP Warning: Module 'fileinfo' already loaded in Unknown on line 0 PHP Warning: Module 'ftp' already loaded in Unknown on line 0 PHP Warning: Module 'gd' already loaded in Unknown on line 0 PHP Warning: Module 'gettext' already loaded in Unknown on line 0 PHP Warning: Module 'gmp' already loaded in Unknown on line 0 PHP Warning: Module 'iconv' already loaded in Unknown on line 0 PHP Warning: Module 'imap' already loaded in Unknown on line 0 PHP Warning: Module 'intl' already loaded in Unknown on line 0 PHP Warning: Module 'json' already loaded in Unknown on line 0 PHP Warning: Module 'ldap' already loaded in Unknown on line 0 PHP Warning: Module 'mbstring' already loaded in Unknown on line 0 PHP Warning: Module 'mysqlnd' already loaded in Unknown on line 0 PHP Warning: Module 'odbc' already loaded in Unknown on line 0 PHP Warning: Module 'PDO' already loaded in Unknown on line 0 PHP Warning: Module 'pgsql' already loaded in Unknown on line 0 PHP Warning: Module 'Phar' already loaded in Unknown on line 0 PHP Warning: Module 'posix' already loaded in Unknown on line 0 PHP Warning: Module 'shmop' already loaded in Unknown on line 0 PHP Warning: Module 'SimpleXML' already loaded in Unknown on line 0 PHP Warning: Module 'soap' already loaded in Unknown on line 0 PHP Warning: Module 'sockets' already loaded in Unknown on line 0 PHP Warning: Module 'sqlite3' already loaded in Unknown on line 0 PHP Warning: Module 'sysvmsg' already loaded in Unknown on line 0 PHP Warning: Module 'sysvsem' already loaded in Unknown on line 0 PHP Warning: Module 'sysvshm' already loaded in Unknown on line 0 PHP Warning: Module 'tidy' already loaded in Unknown on line 0 PHP Warning: Module 'tokenizer' already loaded in Unknown on line 0 PHP Warning: Module 'xml' already loaded in Unknown on line 0 PHP Warning: Module 'xmlwriter' already loaded in Unknown on line 0 PHP Warning: Module 'xsl' already loaded in Unknown on line 0 PHP Warning: Module 'zip' already loaded in Unknown on line 0 PHP Warning: Module 'mysqli' already loaded in Unknown on line 0 PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0 PHP Warning: Module 'PDO_ODBC' already loaded in Unknown on line 0 PHP Warning: Module 'pdo_pgsql' already loaded in Unknown on line 0 PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0 PHP Warning: Module 'wddx' already loaded in Unknown on line 0 PHP Warning: Module 'xmlreader' already loaded in Unknown on line 0 PHP Warning: Module 'xmlrpc' already loaded in Unknown on line 0 PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0 PHP Warning: Module 'imagick' already loaded in Unknown on line 0 PHP Warning: Module 'redis' already loaded in Unknown on line 0 [PHP Modules] bcmath bz2 calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext gmp hash iconv imagick imap intl ionCube Loader json ldap libxml mbstring mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar posix readline redis Reflection session shmop SimpleXML soap sockets SourceGuardian SPL sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache the ionCube PHP Loader + ionCube240 -
Some error log examples: [25-Nov-2019 12:22:28 UTC] PHP Warning: popen() has been disabled for security reasons in /opt/cpanel/ea-php73/root/usr/share/pear/PEAR/Builder.php on line 465 [25-Nov-2019 12:45:28 UTC] PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /opt/cpanel/ea-php73/root/usr/share/pear/PEAR/PackageFile/v1.php on line 1424 [25-Nov-2019 22:14:34 UTC] PHP Warning: require_once(/home/xxxxxxxxx/public_html/wp-config.php): failed to open stream: Permission denied in /home/xxxxxxxx/public_html/wp-load.php on line 37 ...skipping... [26-Nov-2019 01:23:47 UTC] PHP Fatal error: require(): Failed opening required '/home/xxxx/public_html/xx/conf_global.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/xxx/public_html/xxx/system/Dispatcher/Dispatcher.php on line 69 [26-Nov-2019 01:23:52 UTC] PHP Warning: require_once(/home/xxxx/public_html/guide/global_config3.php): failed to open stream: Permission denied in /home/xxxxxxxx/public_html/xx/crew_interview.php on line 8 [26-Nov-2019 01:23:52 UTC] PHP Fatal error: require_once(): Failed opening required '/home/xxxxxxx/public_html/guide/global_config3.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/xxxxxxx/public_html/guide/crew_interview.php on line 8 [26-Nov-2019 01:23:52 UTC] PHP Warning: require_once(/home/xxxxx/public_html/xxxx/global_config3.php): failed to open stream: Permission denied in /home/xxxxxxxx/public_html/xx/crew_interview.php on line 8 [26-Nov-2019 01:23:52 UTC] PHP Fatal error: require_once(): Failed opening required '/home/xxxxxxx/public_html/guide/global_config3.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/xxxxxxx/public_html/guide/crew_interview.php on line 8 [26-Nov-2019 01:24:02 UTC] PHP Fatal error: require(): Failed opening required '/home/xxxxxxx/public_html/xxxxxxx/conf_global.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/xxxxxxx/public_html/xxxxxx/system/Dispatcher/Dispatcher.php on line 69 [26-Nov-2019 01:24:02 UTC] PHP Warning: require_once(/home/xxxx/public_html/wp-config.php): failed to open stream: Permission denied in /home/xxxxxxxx/public_html/wp-load.php on line 37 [26-Nov-2019 01:24:02 UTC] PHP Fatal error: require_once(): Failed opening required '/home/xxxxxxxx/public_html/wp-config.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/xxxxxxx/public_html/wp-load.php on line 37 [26-Nov-2019 01:24:18 UTC] PHP Fatal error: require(): Failed opening required '/home/xxxx/public_html/xxxxxx/conf_global.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/xxxxxx/public_html/xxxxxx/system/Dispatcher/Dispatcher.php on line 69 [26-Nov-2019 01:24:20 UTC] PHP Fatal error: require(): Failed opening required '/home/xxxxxxx [26-Nov-2019 00:06:01 UTC] PHP Fatal error: require_once(): Failed opening required '/home/xxxxxx/public_html/wp-config.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/xxxxxxx/public_html/wp-load.php on line 37 [26-Nov-2019 00:06:14 UTC] PHP Fatal error: require(): Failed opening required '/home/xxxx/public_html/xxxx/conf_global.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/xxxxx/public_html/xxxx/system/Dispatcher/Dispatcher.php on line 69 [26-Nov-2019 00:06:29 UTC] PHP Fatal error: require(): Failed opening required '/home/xxxxx/public_html/xxx/conf_global.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/xxxxxx/public_html/xxxxxx/Dispatcher/Dispatcher.php on line 69 [26-Nov-2019 00:06:59 UTC] PHP Fatal error: require(): Failed opening required '/home/xxxxxxx/public_html/xxx/conf_global.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home/xxxxxxx/public_html/xxxxxxx/system/Dispatcher/Dispatcher.php on line 69 [26-Nov-2019 00:07:07 UTC] PHP Fatal error: require(): Failed opening required '/home/xxxxxx/public_html/xxx/conf_global.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear:
From Sulsphp_log:[Wed Nov 27 00:48:01 2019] sulsphp: uid:(1003/xxxxxxx); gid:(1005/xxxxxxxx); with suexec mode; cmd:(/opt/cpanel/ea-php73/root/usr/bin/lsphp) [Wed Nov 27 00:48:41 2019] sulsphp: uid:(1002/xxxxxxxxx); gid:(1004/xxxxxxx); with suexec mode; cmd:(/opt/cpanel/ea-php73/root/usr/bin/lsphp) [Wed Nov 27 00:48:54 2019] sulsphp: uid:(1000/xxxxxxxx); gid:(1002/xxxxxxx); with suexec mode; cmd:(/opt/cpanel/ea-php73/root/usr/bin/lsphp) [Wed Nov 27 00:50:36 2019] sulsphp: uid:(1001/xxx); gid:(1003/zzzzzzzz); with suexec mode; cmd:(/opt/cpanel/ea-php73/root/usr/bin/lsphp)
From lsphp-stderr.log:[Tue Nov 26 02:53:40 2019] [warn-ioncube] mmap cache can't open /home/xxxxx/public_html/xxxx/conf_global.php - Permission denied (pid 17362) [Tue Nov 26 02:54:10 2019] [warn-ioncube] mmap cache can't open /home/xxxxx/public_html/xxxxx/conf_global.php - Permission denied (pid 17425) [Tue Nov 26 02:54:55 2019] [warn-ioncube] mmap cache can't open /home/xxxxx/public_html/xx/conf_global.php - Permission denied (pid 17437) [Tue Nov 26 02:55:24 2019] [warn-ioncube] mmap cache can't open /home/xxxx/public_html/xxx/conf_global.php - Permission denied (pid 17465)0 -
[CODE=ssh]less yum.log | grep 'Nov 26' Nov 26 02:56:47 Installed: ea-apache24-mod_suexec-2.4.41-1.1.4.cpanel.x86_64 Nov 26 03:44:12 Installed: ea-apache24-mod_proxy_fcgi-2.4.41-1.1.4.cpanel.x86_64 Nov 26 16:09:45 Erased: ea-php73-php-sourceguardian-11.3.1-1.1.11.cpanel.x86_64 Nov 26 16:09:46 Erased: ea-php73-php-imap-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:46 Erased: ea-php73-php-opcache-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:46 Erased: ea-php73-php-pgsql-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:46 Erased: ea-php73-php-exif-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:46 Erased: ea-php73-php-gmp-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:46 Erased: ea-php73-php-ioncube10-10.3.9-1.1.4.cpanel.x86_64 Nov 26 16:09:46 Erased: ea-php73-php-ldap-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:46 Erased: ea-php73-php-zip-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:46 Erased: ea-php73-libc-client-devel-2007f-14.14.3.cpanel.x86_64 Nov 26 16:09:46 Erased: ea-php73-php-bcmath-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:46 Erased: ea-php73-php-fileinfo-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-sockets-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-mysqlnd-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-xmlrpc-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-soap-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-gd-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-process-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-tidy-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-odbc-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-pdo-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-iconv-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-calendar-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-bz2-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-curl-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-intl-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-mbstring-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-gettext-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-scldevel-7.3.11-1.1.1.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-build-7.3.11-1.1.1.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-libc-client-2007f-14.14.3.cpanel.x86_64 Nov 26 16:09:47 Erased: ea-php73-php-litespeed-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:48 Erased: ea-php73-php-cli-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:48 Erased: ea-php73-php-devel-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:48 Erased: ea-php73-php-posix-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:48 Erased: ea-php73-php-xml-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:48 Erased: ea-php73-pear-1.10.7-1.4.17.cpanel.noarch Nov 26 16:09:48 Erased: ea-php73-php-ftp-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:48 Erased: ea-php73-php-common-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:09:48 Erased: ea-php73-runtime-7.3.11-1.1.1.cpanel.x86_64 Nov 26 16:09:48 Erased: ea-php73-7.3.11-1.1.1.cpanel.x86_64 Nov 26 16:25:16 Installed: ea-php73-php-litespeed-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:17 Installed: ea-php73-php-devel-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:19 Installed: ea-php73-php-cli-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:19 Installed: ea-php73-php-posix-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:19 Installed: ea-php73-php-xml-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:19 Installed: ea-php73-php-common-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:19 Installed: ea-php73-php-ftp-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:19 Installed: ea-php73-runtime-7.3.11-1.1.1.cpanel.x86_64 Nov 26 16:25:20 Installed: ea-php73-pear-1.10.7-1.4.17.cpanel.noarch Nov 26 16:25:20 Installed: ea-php73-7.3.11-1.1.1.cpanel.x86_64 Nov 26 16:25:20 Installed: ea-php73-php-pdo-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:20 Installed: ea-php73-libc-client-2007f-14.14.3.cpanel.x86_64 Nov 26 16:25:20 Installed: ea-php73-php-imap-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:20 Installed: ea-php73-libc-client-devel-2007f-14.14.3.cpanel.x86_64 Nov 26 16:25:20 Installed: ea-php73-php-mysqlnd-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:21 Installed: ea-php73-php-pgsql-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:21 Installed: ea-php73-php-odbc-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:21 Installed: ea-php73-php-sourceguardian-11.3.1-1.1.11.cpanel.x86_64 Nov 26 16:25:21 Installed: ea-php73-php-gettext-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:21 Installed: ea-php73-php-xmlrpc-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:21 Installed: ea-php73-php-tidy-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:21 Installed: ea-php73-php-intl-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:21 Installed: ea-php73-php-curl-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:21 Installed: ea-php73-php-bz2-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:21 Installed: ea-php73-php-calendar-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:21 Installed: ea-php73-php-zip-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:21 Installed: ea-php73-php-process-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:22 Installed: ea-php73-php-gd-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:22 Installed: ea-php73-php-soap-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:22 Installed: ea-php73-php-sockets-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:22 Installed: ea-php73-php-fileinfo-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:22 Installed: ea-php73-php-mbstring-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:22 Installed: ea-php73-php-iconv-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:22 Installed: ea-php73-php-ldap-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:22 Installed: ea-php73-php-ioncube10-10.3.9-1.1.4.cpanel.x86_64 Nov 26 16:25:22 Installed: ea-php73-php-gmp-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:23 Installed: ea-php73-php-exif-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:23 Installed: ea-php73-php-bcmath-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:23 Installed: ea-php73-php-opcache-7.3.11-1.1.3.cpanel.x86_64 Nov 26 16:25:23 Installed: ea-apache24-mod_security2-mlogc-2.9.3-2.2.8.cpanel.x86_64 Nov 26 16:25:23 Installed: ea-php73-scldevel-7.3.11-1.1.1.cpanel.x86_64 Nov 26 16:25:23 Installed: ea-apache24-mod_macro-2.4.41-1.1.4.cpanel.x86_64 Nov 26 16:25:23 Installed: ea-apache24-mod_suphp-0.7.2-26.26.28.cpanel.x86_64 Nov 26 16:25:23 Installed: ea-php73-build-7.3.11-1.1.1.cpanel.x86_64 Nov 26 16:25:23 Installed: ea-apache24-mod_sed-2.4.41-1.1.4.cpanel.x86_64 Nov 26 16:25:23 Installed: ea-apache24-mod_info-2.4.41-1.1.4.cpanel.x86_64 Nov 26 16:25:23 Erased: ea-apache24-mod_proxy_fcgi-2.4.41-1.1.4.cpanel.x86_64 Nov 26 19:12:51 Updated: ea-php73-php-ftp-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:51 Updated: ea-php73-php-xml-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:51 Updated: ea-php73-php-posix-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:52 Updated: ea-php73-php-cli-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:52 Updated: ea-php73-php-devel-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:53 Updated: ea-php73-php-litespeed-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:53 Updated: ea-php73-php-common-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:54 Updated: ea-php73-runtime-7.3.12-1.1.1.cpanel.x86_64 Nov 26 19:12:55 Updated: ea-php73-pear-1.10.7-1.4.19.cpanel.noarch Nov 26 19:12:55 Updated: ea-php73-7.3.12-1.1.1.cpanel.x86_64 Nov 26 19:12:55 Updated: ea-php73-php-pdo-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:55 Updated: ea-apache24-mod_security2-2.9.3-3.3.1.cpanel.x86_64 Nov 26 19:12:55 Updated: ea-apache24-mod_security2-mlogc-2.9.3-3.3.1.cpanel.x86_64 Nov 26 19:12:56 Updated: ea-php73-php-mysqlnd-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:56 Updated: ea-php73-php-pgsql-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:56 Updated: ea-php73-php-odbc-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:56 Updated: ea-php73-php-sourceguardian-11.3.1-1.1.12.cpanel.x86_64 Nov 26 19:12:56 Updated: ea-php73-php-xmlrpc-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:56 Updated: ea-php73-php-zip-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:56 Updated: ea-php73-php-bz2-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:56 Updated: ea-php73-php-opcache-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:56 Updated: ea-php73-php-sockets-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:57 Updated: ea-php73-php-tidy-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:57 Updated: ea-php73-php-bcmath-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:57 Updated: ea-php73-php-gettext-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:57 Updated: ea-php73-php-imap-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:57 Updated: ea-php73-php-gd-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:57 Updated: ea-php73-php-exif-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:57 Updated: ea-php73-php-mbstring-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:58 Updated: ea-php73-php-gmp-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:58 Updated: ea-php73-php-intl-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:58 Updated: ea-php73-php-iconv-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:58 Updated: ea-php73-php-process-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:58 Updated: ea-php73-php-soap-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:58 Updated: ea-php73-php-calendar-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:58 Updated: ea-php73-php-fileinfo-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:58 Updated: ea-php73-php-curl-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:59 Updated: ea-php73-php-ioncube10-10.3.9-1.1.5.cpanel.x86_64 Nov 26 19:12:59 Updated: ea-php73-php-ldap-7.3.12-2.2.3.cpanel.x86_64 Nov 26 19:12:59 Updated: ea-php73-scldevel-7.3.12-1.1.1.cpanel.x86_64 Nov 26 19:12:59 Updated: ea-php73-build-7.3.12-1.1.1.cpanel.x86_64 0 -
# Percona Toolkit System Summary Report ###################### Date | 2019-11-27 01:21:10 UTC (local TZ: GMT +0000) Hostname | vpsXXXXXX.xxxxxx.com Uptime | 12:46, 1 user, load average: 0.07, 0.13, 0.26 Platform | Linux Release | CentOS Linux release 7.7.1908 (Core) Kernel | 3.10.0-042stab138.1 Architecture | CPU = 64-bit, OS = 64-bit Threading | NPTL 2.17 SELinux | Disabled Virtualized | OpenVZ/Virtuozzo # Processor ################################################## Processors | physical = 2, cores = 24, virtual = 48, hyperthreading = yes Speeds | 48x2299.744 Models | 48xIntel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz Caches | 48x30720 KB # Memory ##################################################### Total | 3.0G Free | 447.4M Used | physical = 2.1G, swap allocated = 3.0G, swap used = 204.0k, virtual = 2.1G Shared | 8.6M Buffers | 519.8M Caches | 783.7M Dirty | 344 kB UsedRSS | 1.3G Swappiness | 1 DirtyPolicy | 20, 10 DirtyStatus | 0, 0 Locator Size Speed Form Factor Type Type Detail ========= ======== ================= ============= ============= =========== # Mounted Filesystems ########################################
States of connections CLOSE_WAIT 1 ESTABLISHED 25 FIN_WAIT1 1 LISTEN 40 TIME_WAIT 7 # Top Processes ############################################## PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1 root 20 0 43812 2956 1584 S 0.0 0.1 1:12.94 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd/4+ 3 root 20 0 0 0 0 S 0.0 0.0 0:00.19 khelper/40+ 81 root 20 0 71848 4916 4764 S 0.0 0.2 0:04.40 systemd-jo+ 92 root 20 0 42924 64 60 S 0.0 0.0 0:00.00 systemd-ud+ 121 root 20 0 146232 40 36 S 0.0 0.0 0:00.00 pure-authd 123 dbus 20 0 58200 1096 688 S 0.0 0.0 0:13.45 dbus-daemon 125 root 20 0 52820 352 260 S 0.0 0.0 0:00.02 smartd 139 root 20 0 26464 1136 856 S 0.0 0.0 0:06.84 systemd-lo+0 -
Hi @The Old Man Ok, can you humor me a second and run the following for php -m and -v: /opt/cpanel/ea-php73/root/usr/bin/php -m
/opt/cpanel/ea-php73/root/usr/bin/php -v
(just linking directly to the correct PHP installation) Are you manually loading the modules somewhere? Like in:/opt/cpanel/ea-php73/root/etc/php.ini
That's the only reason I can think of that you'd get those "already loaded" error messages I primarily wanted the apache error log at/etc/apache2/logs/error_log
but the PHP log is also informative: This error indicates that you've disabled popen[25-Nov-2019 12:22:28 UTC] PHP Warning: popen() has been disabled for security reasons in /opt/cpanel/ea-php73/root/usr/share/pear/PEAR/Builder.php on line 465
Whats listed in disable_functions?grep disable_functions /opt/cpanel/ea-php73/root/etc/php.ini
Are you still using PHP-FPM or do you have it enabled for the account? What are the permissions/ownership of:/home/xxxx/public_html/xxxx/conf_global.php0 -
Hi Lauren, thanks for coming back on this. I tried removing all traces of EA-PHP73 completely, then installing it again, and I instantly had all the same issues and errors so eventually I had to switch back to FCG handler as my client's sites were all down so long. Everything worked fine as soon as I did so and of course, my webhost Inmotion Hostingfinally emailed back to say everything was working okay! Grrr! I honestly don't know why I pay them for a managed service. Deep breath. I've switched back to LSAPI as I'd love to get this working and so I can run those tests. FCG is noticeably slower than the resource hog that was FPM. With FCG handler: /opt/cpanel/ea-php73/root/usr/bin/php -m [PHP Modules] bcmath bz2 calendar Core ctype curl date dba dom enchant exif fileinfo filter ftp gd gettext gmp hash iconv imagick imap intl ionCube Loader json ldap libxml mbstring mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql phalcon Phar posix pspell readline redis Reflection session shmop SimpleXML soap sockets SourceGuardian SPL sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache the ionCube PHP Loader + ionCube24
I enabled LSAPI, everything is broken again.# /opt/cpanel/ea-php73/root/usr/bin/php -m [PHP Modules] bcmath bz2 calendar Core ctype curl date dba dom enchant exif fileinfo filter ftp gd gettext gmp hash iconv imagick imap intl ionCube Loader json ldap libxml mbstring mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql phalcon Phar posix pspell readline redis Reflection session shmop SimpleXML soap sockets SourceGuardian SPL sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache the ionCube PHP Loader + ionCube24
Again with LSAPI enabled:/opt/cpanel/ea-php73/root/usr/bin/php -v PHP 7.3.12 (cli) (built: Nov 25 2019 22:55:36) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.12, Copyright (c) 1998-2018 Zend Technologies with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd. with Zend OPcache v7.3.12, Copyright (c) 1999-2018, by Zend Technologies
From php.ini at /opt/cpanel/ea-php73/root/etc/php.ini (It's mostly just a stock install, I never add anything extensions that I can recall. I usually only need to disable a few functions and increase file upload, memory limit to 192M, post max etc.); The directory under which PHP opens the script using /~username used only ; if nonempty. ; http://php.net/user-dir user_dir = ; Directory in which the loadable extensions (modules) reside. ; http://php.net/extension-dir ; extension_dir = "./" ; On windows: ; extension_dir = "ext" ; Directory where the temporary files should be placed. ; Defaults to the system default (see sys_get_temp_dir) ; sys_temp_dir = "/tmp" ; Whether or not to enable the dl() function. The dl() function does NOT work ; properly in multithreaded servers, such as IIS or Zeus, and is automatically ; disabled on them. ; http://php.net/enable-dl enable_dl = Off ; cgi.force_redirect is necessary to provide security running PHP as a CGI under ; most web servers. Left undefined, PHP turns this on by default. You can ; turn it off here AT YOUR OWN RISK ; You CAN safely turn this off for IIS, in fact, you MUST. ; http://php.net/cgi.force-redirect .... syntax: ; ; extension=modulename.extension ; ; For example, on Windows: ; ; extension=msql.dll ; ; ... or under UNIX: ; ; extension=msql.so ; ; ... or with a path: ; ; extension=/path/to/extension/msql.so ; ; If you only provide the name of the extension, PHP will look for it in its ; default extension directory. ;;;; ; Note: packaged extension modules are now loaded via the .ini files ; found in the directory /etc/php.d; these are loaded by default. ;;;; ;;;;;;;;;;;;;;;;;;;
Actually the php.ini is different again, it's now like it was before. For a few hours it just had references to Zend Opcache, I've never seen that before. After the final attempt at reinstalling everything from scratch, it's now back to the normal production PHP.ini. "What's listed in disabled functions?" It was this:disable_functions = "show_source, system, shell_exec, passthru, exec, pcntl_exec"
It's currently this:disable_functions = "show_source, system, shell_exec, passthru, exec"
Disabled as per warnings from Invision Community Dashboard.grep disable_functions /opt/cpanel/ea-php73/root/etc/php.ini #disable_functions = "show_source, system, shell_exec, passthru, exec, pcntl_exec" disable_functions = "show_source, system, shell_exec, passthru, exec"
"Still using PHP-FPM?" No as above at top of this post. Switched to FCGI for now apart fromto run the tests you asked for, I'll switch back to FCI handler afterwards so my sites are up again. " permissions of /home/xxxx/public_html/xxxx/conf_global.php" 0640 inside a 0755 folder.0 -
- When running LSAPI - if you switch the permissions of that conf_global.php do you continue to get the error in the logs?
- Most important, when you're running LSAPI what is output in
/etc/apache2/logs/error_log
? - I noticed that you're not getting the errors running php -v and php -m when calling the PHP version directly so that's not an issue
- Is this multiple sites that are all experiencing the issue? If so do the ALL have similar .htaccess configurations?
- I only noted checking php-fpm in the event that it was somehow re-enabled on the domains - it's really important it's in the off status or the changes made in the php.ini will not be effective.
- Is the pre VirtualHost conf still in place? If so can you remove that entirely? It's for the full version of LSAPI as far as I'm aware and I'd like to limit any possible modifications causing issues.
- For the disable_functions issue with popen it's got to be disabled in that user's .ini file then, if it's not in the global.
0 -
Most important, when you're running LSAPI what is output in
/etc/apache2/logs/error_log
?
okay, I some example from that log...[Thu Nov 28 03:21:42.288308 2019] [lsapi:error] [pid 5458:tid 47907080255232] [client 888.888.234.123:62326] [host xxxsjxx.com] Backend fatal error: PHP Fatal error: Uncaught Error: Class 'mysqli' not found in /home/xxxsjxx/public_html/xxxcom_config2.php:6\nStack trace:\n#0 /home/xxxsjxx/public_html/index.php(28): require_once()\n#1 {main}\n thrown in /home/xxxsjxx/public_html/xxxcom_config2.php on line 6\n [Thu Nov 28 03:22:37.718376 2019] [lsapi:error] [pid 5458:tid 47907084457728] [client zzz.zzz.zz.zzz:36306] [host xxxsjxx.com] Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function IPS\\mb_internal_encoding() in /home/xxxsjxx/public_html/content/init.php:489\nStack trace:\n#0 /home/xxxsjxx/public_html/content/init.php(1416): IPS\\IPS::init()\n#1 /home/xxxsjxx/public_html/content/index.php(12): require_once('/home/xxxsjxxxx...')\n#2 {main}\n thrown in /home/xxxsjxx/public_html/content/init.php on line 489\n [Thu Nov 28 03:25:45.072573 2019] [lsapi:error] [pid 5311:tid 47907097065216] [client 123.123.123.123:36666] [host xxxxxx-yyyyy.info] Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function IPS\\mb_internal_encoding() in /home/xxxxxxscxxxxxx/public_html/content/init.php:489\nStack trace:\n#0 /home/xxxxxxscxxxxxx/public_html/content/init.php(1416): IPS\\IPS::init()\n#1 /home/xxxxxxscxxxxxx/public_html/content/index.php(12): require_once('/home/xxxxxtxxxn...')\n#2 {main}\n thrown in /home/xxxxxxscxxxxxx/public_html/content/init.php on line 489\n [Thu Nov 28 03:43:29.959384 2019] [lsapi:error] [pid 5458:tid 47906997061376] [client 123.123.123.123:26866] [host xxxxxx-yyyyy.info] Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function IPS\\mb_internal_encoding() in /home/xxxxxxscxxxxxx/public_html/content/init.php:489\nStack trace:\n#0 /home/xxxxxxscxxxxxx/public_html/content/init.php(1416): IPS\\IPS::init()\n#1 /home/xxxxxxscxxxxxx/public_html/content/index.php(12): require_once('/home/xxxxxtxxxn...')\n#2 {main}\n thrown in /home/xxxxxxscxxxxxx/public_html/content/init.php on line 489\n [Thu Nov 28 03:44:50.857514 2019] [lsapi:error] [pid 5395:tid 47907080255232] [client 123.234.234.345:30366] [host xxxsjxx.com] Backend fatal error: PHP Fatal error: Uncaught Error: Class 'mysqli' not found in /home/xxxsjxx/public_html/xxxcom_config2.php:6\nStack trace:\n#0 /home/xxxsjxx/public_html/index.php(28): require_once()\n#1 {main}\n thrown in /home/xxxsjxx/public_html/xxxcom_config2.php on line 6\n [Thu Nov 28 03:44:52.920660 2019] [lsapi:error] [pid 5311:tid 47907080255232] [client 123.123.123.123:10332] [host xxxxxx-yyyyy.info] Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function IPS\\mb_internal_encoding() in /home/xxxxxxscxxxxxx/public_html/content/init.php:489\nStack trace:\n#0 /home/xxxxxxscxxxxxx/public_html/content/init.php(1416): IPS\\IPS::init()\n#1 /home/xxxxxxscxxxxxx/public_html/content/index.php(12): require_once('/home/xxxxxtxxxn...')\n#2 {main}\n thrown in /home/xxxxxxscxxxxxx/public_html/content/init.php on line 489\n, referer: https://xxxxxx-yyyyy.info/ [Thu Nov 28 03:44:53.736951 2019] [lsapi:error] [pid 5272:tid 47906999162624] [client 123.123.123.123:11786] [host xxxxxx-yyyyy.info] Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function IPS\\mb_internal_encoding() in /home/xxxxxxscxxxxxx/public_html/content/init.php:489\nStack trace:\n#0 /home/xxxxxxscxxxxxx/public_html/content/init.php(1416): IPS\\IPS::init()\n#1 /home/xxxxxxscxxxxxx/public_html/content/index.php(12): require_once('/home/xxxxxtxxxn...')\n#2 {main}\n thrown in /home/xxxxxxscxxxxxx/public_html/content/init.php on line 489\n, referer: https://xxxxxx-yyyyy.info/ [Thu Nov 28 03:44:54.535686 2019] [lsapi:error] [pid 5272:tid 47907076052736] [client 123.123.123.123:12636] [host xxxxxx-yyyyy.info] Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function IPS\\mb_internal_encoding() in /home/xxxxxxscxxxxxx/public_html/content/init.php:489\nStack trace:\n#0 /home/xxxxxxscxxxxxx/public_html/content/init.php(1416): IPS\\IPS::init()\n#1 /home/xxxxxxscxxxxxx/public_html/content/index.php(12): require_once('/home/xxxxxtxxxn...')\n#2 {main}\n thrown in /home/xxxxxxscxxxxxx/public_html/content/init.php on line 489\n, referer: https://xxxxxx-yyyyy.info/ [Thu Nov 28 03:46:45.008485 2019] [lsapi:error] [pid 5311:tid 47907082356480] [client 123.123.123.123:40494] [host xxxxxx-yyyyy.info] Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function IPS\\mb_internal_encoding() in /home/xxxxxxscxxxxxx/public_html/content/init.php:489\nStack trace:\n#0 /home/xxxxxxscxxxxxx/public_html/content/init.php(1416): IPS\\IPS::init()\n#1 /home/xxxxxxscxxxxxx/public_html/content/index.php(12): require_once('/home/xxxxxtxxxn...')\n#2 {main}\n thrown in /home/xxxxxxscxxxxxx/public_html/content/init.php on line 489\n [Thu Nov 28 03:51:08.024040 2019] [lsapi:error] [pid 5458:tid 47907084457728] [client 234,234.345.345:63148] [host www.xxxxxfsxxxxxxxxxxsx.co.uk] Backend fatal error: PHP Fatal error: Uncaught Error: Call to undefined function IPS\\mb_internal_encoding() in /home/xxxxxtxxxnxxxxfxx/public_html/init.php:489\nStack trace:\n#0 /home/xxxxxtxxxnxxxxfxx/public_html/init.php(1416): IPS\\IPS::init()\n#1 /home/xxxxxtxxxnxxxxfxx/public_html/index.php(12): require_once('/home/xxxxxtxxxn...')\n#2 {main}\n thrown in /home/xxxxxtxxxnxxxxfxx/public_html/init.php on line 489\n
Is this multiple sites that are all experiencing the issue? If so do the ALL have similar .htaccess configurations?
Yes all of my sites that use mysqli, I noticed html pages load okay but some have bits missing if there should be a news article or something from the database. Yes my htaccess files are similar, some have Wordpress references, some have seo friendly url redirects.Is the pre VirtualHost conf still in place? If so can you remove that entirely? It's for the full version of LSAPI as far as I'm aware and I'd like to limit any possible modifications causing issues.
Yes, it was removed entirely and I got the same results.I only noted checking php-fpm in the event that it was somehow re-enabled on the domains - it's really important it's in the off status or the changes made in the php.ini will not be effective.
Well it's disabled, I don't have the php-fpm module installed, but there are still references to it in MultiPHP, however the toggles are greyed out. I still get the issues with LSAPI if the PHP is set to inherit or EA-PHP-73. I switch back to a different handler like FCGI and everything seems to work.0 -
Forgot to add that when LSAPI is enabled, Wordpress shows this message instead of a white blank page: Your PHP installation appears to be missing the MySQL extension which is required by WordPress.0 -
I've seen this before in the CloudLinux forums, so it seems that you may not be the only one that has encountered something similar. What's the output of the following when you're logged in as the user (any of them with wordpress experiencing the issue) sudo su $user /opt/cpanel/ea-php73/root/usr/bin/php -m
While you're doing that, I'm going to look into some further information on the issue on the CloudLinux documentation (they provide LSAPI the full version and were involved in our version)0 -
Lets go through the LSAPI configuration as well: Can you run the following: stat /etc/apache2/conf.d/lsapi.conf
For the same account which you logged into to check the PHP modules run the following:stat /home/$user/.htaccess stat /home/$user/public_html/.htaccess
(primarily I'm looking for its existence in both places and and the ownership/permissions In the .htaccess the following should be noted:php_flag display_errors Off php_value max_execution_time 30 php_value max_input_time 60 php_value max_input_vars 1000 php_value memory_limit 32M php_value post_max_size 8M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php72" php_value upload_max_filesize 2M php_flag zlib.output_compression Off php_flag opcache.enable Off
The actual variables on your server there may be different but the IfModule should be present. I'd like to see the actual lsapi version/info:rpm -qa |grep lsapi0 -
Thanks, that's interestingI just tried that and got this: sudo su userwithwordpress Attempting to create directory /home/xxxxxxxxxxx/perl5 xxxxxxxx@xxxxx-xxxxx.info [~]# /opt/cpanel/ea-php73/root/usr/bin/php -m [PHP Modules] bcmath bz2 calendar Core ctype curl date dba dom enchant exif fileinfo filter ftp gd gettext gmp hash iconv imagick imap intl ionCube Loader json ldap libxml mbstring mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql phalcon Phar posix pspell readline redis Reflection session shmop SimpleXML soap sockets SourceGuardian SPL sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache the ionCube PHP Loader + ionCube24
It's 0441 here in the UK, so I better get some sleep! I'll try the other things later, thanks again for all your help.0 -
The good news is that looks good. I do want to let you know that I'll be on holiday until Monday, I do apologize. I will have to check in over the next few days and will time permitting check in with this thread. 0 -
Can you run the following:
Hi Lauren, Hope you had a good break. Sorry for the delay. I'm still back on FCGI handler which is quite slow o I'd really like to try and get LSAPI handler working if possiblestat /etc/apache2/conf.d/lsapi.conf File: "/etc/apache2/conf.d/lsapi.conf" Size: 9105 Blocks: 24 IO Block: 4096 regular file Device: 2de0b6b1h/769701553d Inode: 2491726 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2019-12-07 11:56:58.452789510 +0000 Modify: 2019-11-26 02:43:35.260940897 +0000 Change: 2019-11-26 02:43:35.260940897 +0000 Birth: -
stat /home/$user/.htaccess
stat /home/me29/.htaccess File: "/home/me29/.htaccess" Size: 1196 Blocks: 8 IO Block: 4096 regular file Device: 2de0b6b1h/769701553d Inode: 2899614 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/me29) Gid: ( 1002/me29) Access: 2019-12-07 11:48:28.064902311 +0000 Modify: 2019-11-27 11:45:39.187037320 +0000 Change: 2019-11-27 11:45:39.187037320 +0000 Birth: -
stat /home/me29/public_html/.htaccess File: "/home/me29/public_html/.htaccess" Size: 57155 Blocks: 112 IO Block: 4096 regular file Device: 2de0b6b1h/769701553d Inode: 3156968 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/me29) Gid: ( 1002/me29) Access: 2019-12-07 16:49:52.673055770 +0000 Modify: 2019-12-05 16:49:43.776898534 +0000 Change: 2019-12-05 16:49:43.776898534 +0000 Birth: -
rpm -qa |grep lsapi ea-liblsapi-1.1-38.38.1.cpanel.x86_64 ea-apache24-mod_lsapi-1.1-36.37.11.cpanel.x86_64
Hope this helps! :)0 -
What's in /home/$user/.htaccess
vs/home/$user/public_html/.htacess
? are therephp.ini
files in/home/
/home/$user
and/or/home/$user/public_html
? Per litespeed themselves they note the following: [QUOTE] Troubleshoot Some PHP extensions are missing after being loaded with per user php.ini, for example Your PHP installation appears to be missing the MySQL extension which is required by WordPress. This is because once custom php.ini is loaded, the default php.ini will be ignored. Therefore, extensions will not be loaded. The easiest way to resolve this problem is to copy the contents of the default php.ini into the custom php.ini by the following command: cat /opt/cpanel/ea-phpXX/root/etc/php.ini /opt/cpanel/ea-phpXX/root/etc/php.d/*.ini > /path/to/php.ini Please replace ea-phpXX and /path/to/php.ini with the appropriate version and path. Verify the php.ini content and restart LSWS if necessary, as a change in php.ini will not take effect until a new PHP process starts. The php.ini is read for the first time when a PHP process starts.
0 -
Thanks Lauren, it's now working :) after copying the php.ini into each public_html folder for each of my sites using: cat /opt/cpanel/ea-php73/root/etc/php.ini /opt/cpanel/ea-php73/root/etc/php.d/*.ini > /home/eachusername/public_html/php.ini
and then restarting PHP-FPM in WHM. Prior to this, I checked before and after enabling LSAPI handler and each time the .htaccess in my primary user directory had the lsapi_module configuration and each time it would change the name of the chosen handler to use in each my user php.ini files but never the lsapi_module settings. I'm not sure why they were not just using the master lsapi_module config in the main directory, but that's fine. I note that the php.ini files in each separate user public_html directory and the one in /home/ are all set as group:user ownership root:root, whereas the version in /home/primaryusername/ and /home/primaryusername/public_html are both set to my primary username:username. They are all set to 0644. They all have the same CHMOD but should I CHOWN for security all of the new public_html copies to each username:username, leave at root:root or change them all to nobody:nobody? EDIT: Seconds after posting I found some more info on the Litespeed site that says because it uses suEXEC, each process runs as the owner of each account so I'll change the ones set as root:root to username:username instead. I also noticed that the php-fpm master process is still running, as it was with when I switched from PHP-FPM back to FCGI. Is that correct?root 0 0.00 0.01 php-fpm: master process (/usr/local/cpanel/etc/php-fpm.conf)
Thanks again for your help. I don't know if it's a bug but I think it would be preferable if all of this configuration and replication was automated via WHM when switching to LSAPI handler to be consistent with switching between the other FCGI or PHP-FPM handlers. It also seems to be inconsistent when setting the lsapi config settings to .htaccess, .user.ini and php.ini, from what I've read on their wiki it seems it is supposed to update all 3 files for max compatibility, recursively or not.0 -
I am so glad it's working!! I will need to test your findings, something has to have been a bit off. When I update through the MultiPHP manager or the MultiPHP INI Editor while using LSAPI all my files are updated, .htaccess, php.ini, and user.ini - now one thing that could be an issue was that if these files were root-owned to begin with. This is what I'll test. I'll try and get back to you first thing tomorrow and let you know what I find. 0
Please sign in to leave a comment.
Comments
18 comments