PHP-ZTS Archives - Justin Silver https://www.justinsilver.com/tag/php-zts/ Technology, Travel, and Pictures Thu, 27 Feb 2014 00:19:25 +0000 en-US hourly 1 https://wordpress.org/?v=6.0.1 https://www.justinsilver.com/wp-content/uploads/2013/06/cropped-apple-touch-icon-160x160.png PHP-ZTS Archives - Justin Silver https://www.justinsilver.com/tag/php-zts/ 32 32 phpMyAdmin + CentOS + Apache Worker MPM https://www.justinsilver.com/technology/linux/phpmyadmin-centos-apache-worker-mpm/?utm_source=rss&utm_medium=rss&utm_campaign=phpmyadmin-centos-apache-worker-mpm https://www.justinsilver.com/technology/linux/phpmyadmin-centos-apache-worker-mpm/#respond Sun, 24 Jun 2012 00:10:30 +0000 http://justin.ag/?p=2494 After installing phpMyAdmin I kept getting the above error which reads: The mysqli extension is missing. Please check your PHP configuration. <a href="Documentation.html#faqmysql" target="documentation"><img src="themes/dot.gif" title="Documentation" alt="Documentation" /></a> I had run “yum install php-mysqli” with success,...

The post phpMyAdmin + CentOS + Apache Worker MPM appeared first on Justin Silver.

]]>
AmpedSense.OptimizeAdSpot('AP'); AmpedSense.OptimizeAdSpot('IL'); AmpedSense.OptimizeAdSpot('IR');

Screen Shot 2012-06-23 at 2.09.46 PMAfter installing phpMyAdmin I kept getting the above error which reads:

The mysqli extension is missing. Please check your PHP configuration. <a href="Documentation.html#faqmysql" target="documentation"><img src="themes/dot.gif" title="Documentation" alt="Documentation" /></a>

I had run “yum install php-mysqli” with success, and “php -i | grep mysqli” was showing the mysqli was enabled but looking at phpinfo() through the Apache it didn’t look like mysqli was enabled after all. It then occurred to me that I am using the Apache Worker MPM, which requires the use of php-zts rather than regular php. It looked like php-mysqli doesn’t include the extension for php-zts, which was verified by checking out /usr/lib64/php-zts/modules – no php_mysqli.ini file here.

What to do.

The answer for me was to remove php-mysqli and replace it with php-mysqlnd.

>yum remove php-mysqli
yum install php-mysqlnd
service httpd restart

Reload the page, and the error should be gone. Yay!

The post phpMyAdmin + CentOS + Apache Worker MPM appeared first on Justin Silver.

]]>
https://www.justinsilver.com/technology/linux/phpmyadmin-centos-apache-worker-mpm/feed/ 0