php for Linux之mysqli扩展模块安装与配置
程序员文章站
2022-06-08 08:47:07
...
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安装mcrypt扩展模块笔记
-
red hat linux之Samba、DHCP、DNS、FTP、Web的安装与配置
-
详解Linux下安装php环境并且配置Nginx支持php-fpm模块
-
Windows和Linux中php代码调试工具Xdebug的安装与配置详解
-
Linux学习之CentOS6.4下Mysql数据库的安装与配置
-
Linux下CoreSeek及PHP扩展模块的安装
-
Linux学习之CentOS(十三)--CentOS6.4下Mysql数据库的安装与配置的详细方法
-
Linux下 php5 MySQL5 Apache2 phpMyAdmin ZendOptimizer安装与配置[图文]
-
linux下为PHP扩展安装memcache模块
-
php for Linux之mysqli扩展模块安装与配置