在LINUX下安装DISCUZ出现的错误:advice_mysqli_connect 解决方法。

回复 收藏
在用curl进行模拟调用时,curl接收内容会出现"Empty reply from server"的错误。

修改httpd.conf,在虚拟主机上添加如下内容:
EnableSendfile off
EnableMMAP off


在安装discuz时,无法安装,提示错误如下:advice_mysqli_connect  
解决方法:重新安装php, 配置如下:
cd php-5.3.27
./configure   --prefix=/usr/local/php   --with-apxs2=/usr/local/apache2/bin/apxs   --with-config-file-path=/usr/local/php/etc   --with-mysql=/usr/local/mysql   --with-libxml-dir --with-mysqli --with-gd   --with-jpeg-dir   --with-png-dir   --with-freetype-dir   --with-iconv-dir   --with-zlib-dir   --with-bz2   --with-openssl   --with-mcrypt=/usr/local/libmcrypt   --enable-soap   --enable-gd-native-ttf   --enable-mbstring   --enable-sockets   --enable-exif   --disable-ipv6

make && make install

然后重启apache:/usr/local/apache2/bin/apachectl restart
重启mysql : service mysqld restart

再在linux 下安装 Discuz  就可以了。
1111.jpg 1111.jpg
2014-01-23 01:23 举报
已邀请:
0

阿铭 管理员

赞同来自:

不错,进步非常快!
0

chekir

赞同来自:

Very good!
0

liang1990

赞同来自:

configure: error: mysql configure failed. Please check config.log for more information.
我的还报错这个了。。
0

翟厚翔

赞同来自:

在lnmp时重新安装discuz的时候出现了这个问题,不知道是什么原因,百度说是没有php没有加载mysql的模块
,我的MySQL是rpm安装的,不知道怎么解决,请大神指导一下
0

無名世界

赞同来自:

翟厚翔 发表于 2015-9-21 21:56
在lnmp时重新安装discuz的时候出现了这个问题,不知道是什么原因,百度说是没有php没有加载mysql的模块
, ...

不要RPM安装,请configure安装
0

youyijing

赞同来自:

补充一下
在安装discuz时,无法安装,提示错误如下:advice_mysqli_connect

前提需编译安装 libmcrypt ,上面的很多选项根据各人需要加,唯独
--with-mcrypt=/usr/local/libmcrypt 需加上
0

664778717@qq.co

赞同来自:

翟厚翔 发表于 2015-9-21 21:56
在lnmp时重新安装discuz的时候出现了这个问题,不知道是什么原因,百度说是没有php没有加载mysql的模块
, ...

我也是yum安装的,也是不行你的解决了吗?
0

yonself

赞同来自:

百度找了一圈还是找到自家这里的给力。赞一个
0

ONLYONE

赞同来自:

感觉分享

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: