|

List Home > Operating System > Unix / Linux > [ Post New Problem ]
Welcome back !
| TrackingID : | 4797 |
| Posted : | Friday, July 22nd, 2005 06:04:20 AM |
| By : | techchick_22 |
| How to Install mod_gzip for apache on Linux server? | Configuration: |
|
Please guide how can I install mod_gzip for apache on CentOS Linux server?
| Operating System : CentOS 4.5
|
Related Problems : Comments :
Re: How to Install mod_gzip for apache on Linux server? by Anonymous Ghost on July 22nd, 2005 06:37:31 AM For mod_gzip 1.3.26a install.
1. login as root user to your server
2. create /home/modgziptmp directory
mkdir /home/modgziptmp
chmod 5777 /home/modgziptmp
3. grab mod_gzip 1.3.26a.1a source files and place them in /usr/local/src
cd /usr/local/src
wget http://telia.dl.sourceforge.net/sourceforge/mod-gzip/mod_gzip-1.3.26.1a.tgz
4. extract files and change to directory
tar xfz mod_gzip-1.3.26.1a.tgz
cd mod_gzip-1.3.26.1a
5. compile/install mod_gzip by typing 2 commands (note path/to/apxs maybe different on your server)
make APXS=/usr/local/apache/bin/apxs
make install APXS=/usr/local/apache/bin/apxs
6. Add the mod_gzip configuration settings after mod_gzip.c in httpd.conf
quote:
--------------------------------------------------------------------------------
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_can_negotiate Yes
mod_gzip_static_suffix .gz
AddEncoding gzip .gz
mod_gzip_update_static No
mod_gzip_command_version 'mod_gzip_status'
mod_gzip_temp_dir /home/modgziptmp
mod_gzip_keep_workfiles No
mod_gzip_minimum_file_size 500
mod_gzip_maximum_file_size 500000
mod_gzip_maximum_inmem_size 60000
mod_gzip_min_http 1000
mod_gzip_handle_methods GET POST
mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0[678]"
mod_gzip_item_include file .html$
mod_gzip_item_include file .shtml$
mod_gzip_item_include file .htm$
mod_gzip_item_include file .shtm$
mod_gzip_item_include file .php$
mod_gzip_item_include file .phtml$
mod_gzip_item_exclude file .js$
mod_gzip_item_exclude file .css$
mod_gzip_item_include file .pl$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/html$
mod_gzip_item_include mime ^text/plain$
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_exclude mime ^image/
mod_gzip_dechunk Yes
mod_gzip_add_header_count Yes
mod_gzip_send_vary Yes
</IfModule>
--------------------------------------------------------------------------------
7. restart apache
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
8. check to see if mod_gzip is installed
go to http://www.nibbleguru.com/tools/gzip-test.php and enter your server/site url
|
Re: How to Install mod_gzip for apache on Linux server? by Anonymous Ghost on September 06th, 2005 08:57:12 PM So how do I know if my browser is actually asking for it zipped or not?
Gary |
Related Problems :
List Home > Operating System > Unix / Linux > [ Post New Problem ] |
|