1. 程式人生 > >在LINUX下安裝DISCUZ出現的錯誤:advice_mysqli_connect 解決方法。

在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 就可以了。
在LINUX下安裝DISCUZ出現的錯誤:advice_mysqli_connect 解決方法。