在用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 就可以了。
![fa5ac62cc8cbf72fdc8860206e285e40.png](https://img-blog.csdnimg.cn/img_convert/fa5ac62cc8cbf72fdc8860206e285e40.png)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)