码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2015-05-10 01:13:01      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:mysqli

 

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`

 

 

本文出自 “方寸小山” 博客,请务必保留此出处http://63638790.blog.51cto.com/513514/1649881

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

标签:mysqli

原文地址:http://63638790.blog.51cto.com/513514/1649881

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!