首頁 >後端開發 >php教程 >php for Linux之mysqli扩展模块安装与配置

php for Linux之mysqli扩展模块安装与配置

WBOY
WBOY原創
2016-06-23 13:35:021403瀏覽

 

cd /root/php-5.6.8/ext/mysqli

 

/usr/local/php/bin/phpize

 

./configure --with-php-config=/usr/local/php/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config

 

make && make install

 

编辑 /usr/local/php/lib/php.ini ,增加如下内容:

 

extension_dir = "/usr/local/php/lib/php/extensions/no-debug-zts-20131226/"

 

extension = "mysqli.so"

 

 

Apache:

/etc/init.d/httpd stop

/etc/init.d/httpd start

 

Nginx:

nginx -s stop

 

php-fpm开启:

/usr/local/php/sbin/php-fpm

 

php-fpm 关闭:

kill -INT `cat /usr/local/php/var/run/php-fpm.pid`

 

php-fpm 重启:

kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid`

 

 

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn