在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 就可以了。

原文地址:http://blog.51cto.com/8564546/2339126

时间: 2024-08-28 12:53:10

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

【Linux】Linux下安装MySQL版本冲突的一个解决方法

 在安装MySQL服务时出现如下错误: 要安装的版本是5.1.45,而之前有安装过5.0.22版本的,因此出现: MySQL conflicts withmysql-5.0.22-2.1.0.1.i386 MySQL-server conflicts with mysql-server-5.0.22-2.1.0.1.i386 使用rpm -e –nodeps mysql-5.0.22-2.1.0.1,删除之前的版本,如果没删除mysql-server-5.0.22-2.1.0.1.i386还

Python: 安装 sklearn 包出现错误的解决方法

今天在安装python 的 sklearn 包时出现了 Cannot uninstall 'numpy' 和 Cannot uninstall 'scipy' 错误,下面记录了我尝试了很多网上的方法后最终成功的解决方法. 终端执行 pip install scikit-learn 后,出现 Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine wh

Linux下error while loading shared libraries的解决方法

1. 出现error while loading shared libraries的原因 1-1. 不存在该共享库,如果是这个原因,需要下载或者编译该共享库先了. 1-2. 存在该共享库,但是找不到或者共享库的不对 如果是第二种情况,请继续往下看. 2.原因分析 系统查看共享库的过程:首先查找 /etc/ld.so.cache文件,如果找不到就查找环境变量里的LD_LIBRARY_PATH的值,如果找到了就到对应的目录加载该共享库,如果找不到就报error while loading share

Error: Linux下 mysql.sock文件丢失被删除解决方法

在默认情况下,Mysql安装以后会在/tmp目录下生成一个mysql.sock文件,如该文件丢失则Mysql将不能够正常启动,解决方法:使用mysqld_safe 启动即可解决: #basedir:mysql安装路径,默认在/usr/local/mysql下:datadir:数据库存放路径,默认在/usr/local/mysql/data #使用下面的命令启动后,会在/tmp/下生成一个mysql.sock文件#./ 即为:/usr/local/mysql/bin $ ./mysqld_safe

Linux下Eclipse中 中文显示乱码的解决方法

解决方法:在菜单项Window下打开子菜单prefence,在其中设置编码方式为UTF-8.

本地linux下安装discuz

[[email protected] www]#mkdir /data/wwww [[email protected] www]#cd /data/wwww [[email protected] www]#wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_GBK.zip [[email protected] www]# ls Discuz_X3.2_SC_GBK.zip  readme  upload  utility [[e

Linux下安装与卸载工具(三种方法)

三种方法为:rpm工具.yum工具.源码包 rpm工具(操作繁琐) 光驱挂载到mnt:mount /dev/cdrom /mnt/centos安装包中就有rpm包 Packages rpm -ivh rpm包文件 //安装rpm -Uvh rpm包文件 //升级rpm -e 包名 //卸载(包名是安装包最前面的部分,第一个-之前的) rpm -qa //查询安装的包rpm -q 包名 //查询指定包是否安装rpm -qi 包名 //查询指定包信息rpm -ql 包名 //列出包安装的文件rpm

ubuntu下Qt cannot find -lGL错误的解决方法 (转载)

在ubuntu下使用Qt 编译时候遇上了cannot find -lGL错误,使用命令 sudo apt-get install libqt4-dev或者sudo apt-get install libgl1-mesa-dev或者libgl1-mesa-dev或者libglu1-mesa-dev可以解决问题 之前可以先apt-get install update一下 我遇到的Linux的错误集合: 1:ps -aux | grep corseGui  查找corseGui的进程 kill -s

linux 下普通用户无法使用sudo命令的解决方法

装完linux系统,发现普通用户无法使用sudo 命令, 提示:xinhuan(普通用户)is not in the sudoers file, This incident will be reported. 大概意思是说xinhuan 这个用户不在sudoers这个文件里,这个事件将要被报告的. 我们可以这样做 [[email protected]~]$su -    (切换到root) 输入超级用户root密码 [[email protected]~]#chmod u+w /etc/sudo