php for Linux之mysqli扩展模块安装与配置
程序员文章站
2022-06-16 21:55:43
...
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`
推荐阅读
-
linux - 在本机编译php的mysqli扩展时,如果本机没装mysql的话,怎么安装?
-
php jpgraph中文使用手册之jpgraph字体安装与配置方法
-
linux安装php 模块--with-mysql --with-mysqli非得需要安装mysql吗
-
Linux下ZendOptimizer的安装与配置方法_php技巧
-
Linux 安装 PHP扩展 zip模块
-
Windows和Linux中php代码调试工具Xdebug的安装与配置详解
-
Linux下PHP安装mcrypt扩展模块笔记
-
red hat linux之Samba、DHCP、DNS、FTP、Web的安装与配置
-
详解Linux下安装php环境并且配置Nginx支持php-fpm模块
-
Windows和Linux中php代码调试工具Xdebug的安装与配置详解