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