As discussed here: mysqli works on startup directly, but not through js-ajax
I may need to enable mysqli in my php copy of the web server. It is included on the command line already.
How can I find out if mysqli is included in a specific php copy, and if it is not, how to install it?
Ubuntu 14.04.2 LTS is running on my web server.
Now I tried to have the following extensions in the php.ini file:
extension=mysqli.so extension=pdo_mysql.so extension=php_mysqli.so
I tried to start them all separately, restarted mysql and apache, ran sudo php5enmod mysqli , and then started the page again, but the same error continues to appear in /var/log/apache/error.log:
PHP Fatal error: Class 'mysqli' not found in /var/www/html/..
And nothing is added to the sql table unless I ran insert.php from the server side.
When I have all three extensions in the php.ini file, I get the following errors:
Failed loading /usr/lib64/php/modules/ioncube_loader_lin.so: /usr/lib64/php/modules/ioncube_loader_lin.so: cannot open shared object file: No such file or directory Failed loading /usr/lib64/php/modules/ixed.lin: /usr/lib64/php/modules/ixed.lin: cannot open shared object file: No such file or directory Failed loading /usr/lib64/php/modules/ZendOptimizer.so: /usr/lib64/php/modules/ZendOptimizer.so: cannot open shared object file: No such file or directory Failed loading /usr/lib64/php/modules/opcache.so: /usr/lib64/php/modules/opcache.so: cannot open shared object file: No such file or directory
php mysqli webserver
Hermann Ingjaldsson Jul 21 '15 at 9:25 2015-07-21 09:25
source share