View Full Version : Gzip problem
howardchui
Tue 25th Dec '01, 5:12am
Hi I've been trying to get my vb to output gzip compressed pages. Here's my php info page (http://www.howardchui.com/info.php). I turned off gzip in the admin panel, I turned it on in the admin panel but no go. Any suggestions? Thanks
eva2000
Tue 25th Dec '01, 5:18am
it doesn't work because PHP was not compiled with zlib support
you need to get your web host to compile PHP with at least zlib support for gzip compression to work
howardchui
Tue 25th Dec '01, 6:39am
Thanks. I installed zlib but how do I configure PHP if it's already installed?
http://i4net.tv/marticle/get.php?action=getarticle&articleid=17
eva2000
Tue 25th Dec '01, 7:03am
installed zlib
http://i4net.tv/marticle/get.php?action=getarticle&articleid=18
then since you're have PHP compiled using apxs you can just recompile PHP itself with zlib support
go to the source directory where PHP 4.04.pl1 is located and delete config.cache and then as root user type in the PHP 4.04pl1 source directory
# ./configure --with-mysql --with-apxs --with-zlib=/usr/local/zlib
# make
# make install
then restart apache
howardchui
Tue 25th Dec '01, 7:17am
Silly question but... How do I start Apache? looking aroun on google it looks like I need to do something with httpd but when I type in 'which httpd' I don't get a path so it must be called something else.
eva2000
Tue 25th Dec '01, 7:20am
Originally posted by howardchui
Silly question but... How do I start Apache? looking aroun on google it looks like I need to do something with httpd but when I type in 'which httpd' I don't get a path so it must be called something else. 2 commands should work if you have apache installed the standard way on most web servers
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
vBulletin® v3.8.0 Beta 4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.