Hello.
I've setup a brand new VM running Ubuntu 20.04.
Then OpenLiteSpeed, then lsphp74, then a virtual host with su_exec (using the official documentation).
First of all, there's not lsphp74-mysqlnd (or mysql-nd) for this OS. I've understood this is normal but still feels strange.
phpinfo() (in the vHost of course) says:
I tried a code snippet:
The result is "bool(false)" and it shows up an error in the log:
I must be missing something obvious. But what?
I've setup a brand new VM running Ubuntu 20.04.
Then OpenLiteSpeed, then lsphp74, then a virtual host with su_exec (using the official documentation).
First of all, there's not lsphp74-mysqlnd (or mysql-nd) for this OS. I've understood this is normal but still feels strange.
phpinfo() (in the vHost of course) says:
Code:
mysqlnd
mysqlnd enabled
Version mysqlnd 7.4.20
Compression supported
core SSL supported
extended SSL supported
Command buffer size 4096
Read buffer size 32768
Read timeout 86400
Collecting statistics Yes
Collecting memory statistics No
Tracing n/a
Loaded plugins mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password,auth_plugin_caching_sha2_password,auth_plugin_sha256_password
API Extensions no value
Code:
<?php
var_dump (function_exists('mysqli_connect'));
?>
Code:
2021-06-27 21:23:11.321556 [NOTICE] [128202] [178.39.189.188:52368:HTTP2-17#vHostName] [STDERR] PHP Fatal error: Uncaught Error: Call to undefined function mysqli_report() in /home/userdir/web/_test_mysqli.php:8
Stack trace:
#0 {main}
thrown in /home/userdir/web/_test_mysqli.php on line 8