Add the mysqli extension in php. To add mysqli extension to php, any php extension can be compiled and installed separately in the php source code package. here, because phpmyadmin requires mysqli extension, compile this module for installation. the process and some problems are recorded as follows: add mysqli extension in php
Any php extension can be compiled and installed separately in the php source code package.
The phpmyadmin requires mysqli extension to compile the module for installation. the process and some problems are recorded as follows:
Php compilation and installation path/usr/local/php5.6
Mysql compilation and installation path/usr/local/mysql5.6
Go to the mysqli extension path of the php source code installation package
# Cd/tmp/php-5.6.15/ext/mysqli
Generate the configure file
#/Usr/local/php5.6/bin/phpize
Configuration
#./Configure -- with-php-config =/usr/local/php5.6/bin/php-config/
-- With-mysqli =/usr/local/mysql/bin/mysql_config
Compile and install PHP. if there are no errors during the configuration process and any errors are encountered during compilation, re-compile PHP and add
-- With-mysql = shared, mysqlnd -- enable-sockets = shared, and then re-compile the two parameters.
# Make & make install
Installing shared extensions:/usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/
Installing header files:/usr/local/php5.6/include/php/
View the so file
Ls/usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/
Mysqli. so
Modify php. ini
Add the following content to the Dynamic Extensions comment.
Extension =/usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/mysqli. so
Any php extension can be compiled and installed separately in the php source code package. because phpmyadmin requires mysqli extension, compile the module for installation. the process and some problems are recorded as follows :...