As is discussed here: mysqli works when run directly but not when via js-ajax
I may need to enable mysqli in my webserver php copy. It is enabled in the command line already.
How do I figure out if mysqli is enabled in a specific php copy, and if it's not, how do I install it?
My webserver is running Ubuntu 14.04.2 LTS.
I have now tried having the following extensions in my php.ini file:
extension=mysqli.so
extension=pdo_mysql.so
extension=php_mysqli.so
I have tried running them all separately, restarted mysql and apache, ran sudo php5enmod mysqli
and then I run the page again, but the same error keeps popping up in /var/log/apache/error.log:
PHP Fatal error: Class 'mysqli' not found in /var/www/html/..
And nothing gets added to the sql table unless I run the insert.php from the server side.
When I have all three extension in the php.ini file I get the following errors are well:
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