Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-15-2009, 09:34 AM
|
#1
|
LQ Newbie
Registered: Sep 2008
Posts: 11
Rep:
|
Apache and HTTP Compression
Hi everyone!
I am planning on implementing HTTP Compression in my site, I have been reading and I see big advantages by "gzipping" content from server so that bandwidth could be reduced when reached to client-side.
From what I read, I could add the following pro's:
- Content is compressed when sent from server to client, leveraging bandwidth traffic, reaching in a "faster" way to the user.
And the con's I understand:
- Compression algorithm requires CPU loads
- Compression takes place with text content, not images, etc
Am I missing any other important thing to consider?
|
|
|
01-16-2009, 02:58 AM
|
#2
|
Senior Member
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,466
|
Hi
I have turned this on, and the difference is huge if you have a slow internet connection. The CPU usage on the web server increases, but not very much. So unless the CPU on the server is very slow, there will not be a problem. You save a lot of bandwidth, and also, since the server spends less time on each client, I think the difference on server load is not much different.
If you use Apache2, it's very easy to set up:
sudo a2enmod deflate
But if your webserver has lots of PHP scripts, it will not make a difference. To get PHP scripts compressing, you need to edit your php.ini:
zlib.output_compression = On
|
|
|
01-19-2009, 09:45 AM
|
#3
|
LQ Newbie
Registered: Sep 2008
Posts: 11
Original Poster
Rep:
|
Quote:
Originally Posted by Guttorm
Hi
I have turned this on, and the difference is huge if you have a slow internet connection. The CPU usage on the web server increases, but not very much. So unless the CPU on the server is very slow, there will not be a problem. You save a lot of bandwidth, and also, since the server spends less time on each client, I think the difference on server load is not much different.
If you use Apache2, it's very easy to set up:
sudo a2enmod deflate
But if your webserver has lots of PHP scripts, it will not make a difference. To get PHP scripts compressing, you need to edit your php.ini:
zlib.output_compression = On
|
Thanks a lot!! That was exactly what I was looking for  , I'll implement it right now to see the improvements 
|
|
|
All times are GMT -5. The time now is 11:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|