在用 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://www.bubuko.com/infodetail-2909412.html