Add to Favorites
Forum
Blog
Home
Register
Search
Rules
New Posts
Help
Hosting Discussion
>
Web Hosting Forums
>
Hardware and Server Configuration
>
[mod_gzip] Installing
Remember Me?
forgot password?
Register Today!
Sign up for a free HostingDiscussion account today!
SPONSORED LINKS
Managed VPS
VPN management, backup, automated reboots. Dallas, Seattle, or D.C. NOC's.
www.zipservers.com
Linux VPS Hosting
7-th Anniversary Sale, 50% OFF all VPS plans. From $14.95. Keep the same price forever.
www.rosehosting.com
Just Host $4.95/month
The last hosting plan you’ll ever need - 750GB disk space and 10TB transfers.
www.justhost.com
ClientExec 3.0
The easiest to use billing application just got some muscle. Try out our demo today.
www.clientexec.com
Cheap Web Hosting
Reliable hosting from $4.99/mo. NO overselling, NO hidden-fees, Multi-level spam protection!
www.hostsvault.com
Reply
LinkBack
Thread Tools
Post #
1
(
permalink
) 01-23-2002, 10:16 AM
Homer
HD Addict
Join Date: Jan 2002
Posts: 122
Status:
Okay,
as requested here are the instructions for the installation of mod_gzip.
Mod_gzip is a compression module for Apache, it can reduce your bandwidth / traffic upto 70% !!
Instructions
(commands are bold)
Quote:
Login to your box as root
Get the mod_gzip source by running:
wget
http://www.remotecommunications.com/....1a/mod_gzip.c
Next find the path to "apxs":
locate apxs
Now run apxs so it will add mod_gzip to apache
apxs -i -a -c mod_gzip.c
(if it says cant find apxs include the path!)
Now, edit your httpd.conf (
locate httpd.conf
by running the command:
pico httpd.conf
(path!!)
Add the following lines:
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_keep_workfiles No
mod_gzip_min_http 1001
mod_gzip_temp_dir /tmp/mod_gzip
mod_gzip_minimum_file_size 1002
mod_gzip_maximum_file_size 0
mod_gzip_maximum_inmem_size 1000000
mod_gzip_command_version mod_gzip_show_version
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.shtml$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.cgi$
mod_gzip_item_include file \.pl$
#mod_gzip_item_include file \.jpg$
#mod_gzip_item_include file \.gif$
#mod_gzip_item_include file \.swf$
mod_gzip_item_include handler ^perl-script$
mod_gzip_item_include mime text/html
mod_gzip_item_include mime text/plain
mod_gzip_item_include mime text/richtext
#mod_gzip_item_include mime image/jpeg
#mod_gzip_item_include mime image/gif
mod_gzip_item_include mime "application/x-httpd-php.*"
mod_gzip_item_include mime httpd/unix-directory
mod_gzip_item_exclude file "\.htaccess$"
mod_gzip_item_exclude file "\.htpasswd$"
mod_gzip_item_exclude file "\.css$"
mod_gzip_item_exclude file "\.js$"
mod_gzip_item_exclude file "\.wml$"
mod_gzip_item_exclude mime text/ht
</IfModule>
Save and exit.
Edit your mime.types (
locate mime.types
and add:
text/ht htpasswd htaccess
Save and exit.
Create a temp dir for mod_gzip and set rights.
mkdir /tmp/mod_gzip
chmod 777 /tmp/mod_gzip
chown nobody.nobody /tmp/mod_gzip
Restart apache by running:
/etc/rc.d/init.d/httpd restart
Test if mod_gzip is correctly installed by surfing to:
http://www.YOURDOMAIN.com/mod_gzip_show_version
Post #
2
(
permalink
) 01-23-2002, 10:47 AM
HostingFreak
HD Newbie
Join Date: Jan 2002
Posts: 9
Status:
will this effect webalizer work ?
p.s
i can start see that it works , my load average jumped X20 times !
Post #
3
(
permalink
) 01-23-2002, 11:06 AM
Homer
HD Addict
Join Date: Jan 2002
Posts: 122
Status:
Quote:
Originally posted by HostingFreak
will this effect webalizer work ?
Yes, as you can see my example excludes the pass prot. files "htaccess" and "htpasswd".
When mod_gzip compressed these you will get errors, with my example you wont
Post #
4
(
permalink
) 01-25-2002, 05:28 AM
HostingFreak
HD Newbie
Join Date: Jan 2002
Posts: 9
Status:
well .... it doesnt work
i installed it few days ago and the mod_gzip isnt working
i dont see any change in traffic and you can see
this
says it isnt gzipped
p.s
is gziped
this site
10x
Post #
5
(
permalink
) 01-25-2002, 07:35 AM
Homer
HD Addict
Join Date: Jan 2002
Posts: 122
Status:
What is your URL?
Post #
6
(
permalink
) 01-25-2002, 07:37 AM
HostingFreak
HD Newbie
Join Date: Jan 2002
Posts: 9
Status:
www.chiquititas.hagai.net/pmi.html
Post #
7
(
permalink
) 01-25-2002, 07:40 AM
Homer
HD Addict
Join Date: Jan 2002
Posts: 122
Status:
http://www.chiquititas.hagai.net/mod_gzip_show_version
- Seems to work...
Give it a few, when I checked my URL with leknor it also didnt immediately give me a "is compressed" result...
Check back in 2 days or so and let me know, okay?
Reply
Thread Tools
Show Printable Version
Email this Page
New Post
Old Post
Posting Rules:
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
vB code
is
On
Smilies
are
On
[IMG]
code is
Off
HTML code is
Off
Trackbacks
are
On
Pingbacks
are
On
Refbacks
are
On
Contact Us
|
HostingDiscussion.com
|
Advertising
(with spam verification) |
Archive
© 2000-2008 HostingDiscussion.com. All right reserved.
Web Hosting
by Micfo.com
All times are GMT -6. The time now is
03:08 PM
.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by
vBSEO
3.1.0
LinkBack
LinkBack URL
About LinkBacks