Deploying mod_deflate On Your Apache Web Server

Sunday, November 22nd, 2009

If you are closely tuned in to the web world as I am, you may have heard that Google may include “web page load time” as one of their ranking factors in 2010. I heard about this, saw a few videos about this and read about this. Apparently, when Google talks about changing what makes people’s websites rank differently, people listen…and then talk about it themselves.

I run a bunch of different websites. Some of them have rather large page sizes. The reason they are so large is because of additional files beyond simple HTML that each page pulls in to make the web page behave correctly. These files, such as .js and .css files can get kind of big. Over the years, I didn’t really dig too deeply into the page size issue because the sites get fairly good traffic. I just let things ride.

A few days ago, I came across a post on a forum that talked about mod_gzip or otherwise known as GZIP. This is software that you can install on your web server that compresses your web pages up to 70%. Google recommends that webmasters use GZIP to speed up their websites. Google likes to present its visitors with nice speedy pages in their search results.

I read that it’s pretty easy to deploy GZIP and that it really shouldn’t take more than a few minutes (if it’s already installed on your server). I decided to give it a try. So I did. It didn’t work. Hmmm.

I called my web host and started asking questions. I was like, YO B%^&*, what up with my GZIP??? No really, I was polite. I asked about why GZIP wasn’t giving me any compression results and they told me that I was running Apache2 and that mod_deflate was already installed, not mod_gzip. All I needed to do was to deploy it. I kind of like the name “GZIP” better than “DEFLATE” but who am I to argue?

By the way, here are some good resources on using GZIP and DEFLATE:

- How To Save Traffic With Apache2’s mod_deflate
- Mod_Deflate vs. Mod_Gzip , Comparing the Two

First, I asked the web host to deploy mod_deflate on only one domain. I wanted to gauge the results and also take a night to see if anything got screwed up from it. They were agreeable and did the following:

At your request I enabled mod_deflate for one domain on server 123456:

http://www.mydomain.com/

This was done by modifying:

/my/path/mydomain.com/conf/vhost.conf

with the following content:


AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript

I checked the website in questions and low and behold, I saw web pages that were being compressed. How could I tell? I used these resources:

- Port80 Software Compression Check
- Web Page Analyzer – 0.98 – from Website Optimization

I checked out some stuff overnight and since everything looked fine in the morning, I gave the web host a call back and asked them to undo what they did to that individual domain and set it up server-wide. They put the server back the way it was and set up mod_deflate to compress all the websites on the server by doing this:

Created a file /my/path/mod_deflate.conf with the following line:

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript

That was about it. Since Apache2 comes with mod_deflate installed already, all we had to do was to deploy it. We did this both for an individual domain and server-wide.

I bet you want to know about the results, right? Okay. Well, I can tell you that I had some web pages that were over 400kb. They are now running at about 165kb. I also had some web pages that were about 445kb. They are now running at about 45kb. That’s about 10% of what it was. Is that crazy? Yes, it’s nuts.

Next week, I am going to deploy mod_deflate on my other web server. That should really make some positive changes.

There are a few things you should know. The first thing is that if you decide to do this and have a cable internet connection where you are connected to the internet, you most likely won’t notice much of a change. I read that this has something to do with packets. I am not that smart, so I just took this statement as face value. Although, I run cable and didn’t really notice much of a change. People who use DSL and dial up will definitely see some speed improvements from the smaller web page sizes.

Also, if you are running a website and are using a shared server, you may not be able to use mod_gzip or mod_deflate. Since both of these modules use an increased amount of processing power, many web hosts won’t allow its use. If you aren’t aware, some of these web hosts pack like 10 billion websites on each server. Any increase in CPU demand is going to cause problems. Still, you should give them a call to see what they say. You might get lucky.

Related posts

Listening To Pandora On The Droid

Saturday, November 7th, 2009

Okay, so last night I figured out how to get some music on my Droid. It’s really easy. If you need help, let me know. Perhaps I will even write a post on how to upload music to the Droid. Who knows. What I do know is that I now have a music player.

This evening (actually just a few minutes ago), I was reading an article about how developers of Droid apps saw an increase in downloads yesterday. One such app that saw a big uptick in downloads is a music player created by Pandora. When I read this, I said, “Hmmm.” I hadn’t really thought much about a music player on a PDA that actually streamed music from the internet. This opens up a whole new world.

I visited Pandora to see what it was all about. Apparently, some geniuses discovered a way to find music that is similar to what you like. Basically, when you visit their homepage, you are asked to type in the name of a song or group that you like. Then, Pandora will find music that is similar to what you typed in and start playing it. I typed in “Days of the New” and was happy to hear “Alice In Chains” and “Stone Temple Pilots.” After that, I heard some Days of the New. Where have I been? How long has this site been out there? It’s pretty awesome.

I haven’t tried to play any music on the Droid from Pandora yet. I downloaded the app and was warned that this service downloads some pretty hefty data, so I should be sure that I am on an unlimited data plan. I know I am, but I am going to give a call over to Verizon tomorrow just to make sure. Can you imagine listening to music that streams from the internet on a cell phone? Now, can you imagine that this music is what you actually like? That’s huge.

Related posts

My New Motorola Droid

Friday, November 6th, 2009

I read somewhere a few days ago that pictures and video on the internet don’t do the Motorola Droid justice. Boy, they were right about that. In person, this thing is phenomenal.

After Jiu Jitsu practice this afternoon, I somehow ended up in the Verizon Wireless store in Glastonbury. Don’t ask me how I got there, it was a blur. All I know is that I wanted this new PDA because the screen is much larger than my current Blackberry Curve screen and I can see the browser 100% better. Also, HTML emails show up as HTML, not text with code all over the place. It’s a superb business tool.

I am going to keep this post short because the Motorola Droid has been plastered all over the internet and television for that past few weeks. I am not going to go over all that again, but I will throw a nice little video in this post for you. Let me say this…the phone is awesome. Gmail, Google Calendar and Contacts are seamless. Apps are just a few clicks away. The operating system is extremely intuitive. At first glance, I thought I would actually need the manual to learn how things work. About 15 minutes of playing with the phone gave me a good working knowledge of how to use just about everything.

The Motorola Droid is the best PDA device I have ever touched…hands down.

Related posts

Why Did Windows Vista Fail?

Tuesday, October 13th, 2009

I was reading an article entitled, “Mac fanboys should get a life and some Windows 7 common sense” today and came across a line that piqued my interest. The line was this: “Vista was a Windows failure.”

When I read that line, I stopped cold for a second or two. I started thinking and asking myself silly questions, like, “Gee, I’m working on Vista right now. What’s wrong with it?” and “Why is it that when ever I read something about Windows Vista, it’s negative?” and “Why do I feel like every computer I go near that has Vista installed on it is going to blow up like a giant stink bomb?” Seriously, I am typing on a machine running Windows Vista right this very moment and the world is okay.

I am not simply sticking up for Microsoft, although I was just saying a few days ago that it wouldn’t really matter what position someone takes, I am bound to take the opposite one. I am a debater by nature and right now Vista is the underdog. So there you are.

I will tell you this, I absolutely hate Internet Explorer. It doesn’t matter what version comes out, it pains me to open the program. Maybe it’s because it is excruciatingly slow. It’s not only slow to browse web pages, it’s also slow to just open and run. I read a comparison between the latest versions of IE, Firefox and Chrome the other day. They said that speed was generally the same among all three applications. My eyes nearly fell out of my head. I was like, “What planet are you from?” I only use IE for one thing now and I don’t look forward to it.

I also hate ActiveSync. I used to use it to sync my Treo with Outlook. It was such a waste of time. How many times can a person sever and restore the relationship between the phone and the computer? My fingers used to hurt from crossing them so much.

This brings me to the last thing (I think) I don’t like from Microsoft…and that is Windows Mobile. When I was using Windows Mobile on that Treo, I must have given that phone a hard reboot hundreds of times. It pushed me into the arms of Blackberry, where I have been warmly embraced ever since. I have had my Blackberry for about two years now. Do you know how many times I had to reboot the phone? Once. That’s right. I had to reboot the phone once since I got it and that was just last week and the problem wasn’t even with the phone. It had to do with a Google app that had a bug. Now that’s good.

So, back to my original question. What in the world is wrong with Vista? It is just that there were some compatibility issues when it first came out? Does it have to do with usability issues? Do people dislike the little box that pops up when they have to install or uninstall software?

Since I really don’t know the answer and really have only had a few problems with Vista, I decided to do a little Google search. Here are some sites that offered me some answers:

- The top five reasons why Windows Vista failed
- Microsoft admits Vista failure
- Why Vista failed – suicide by not fearing Linux enough

I guess there are some legitimate reasons why people are a little ticked off. Especially when the company that made the software admits it didn’t work out. I seem to think they are just pumping up Windows 7 though. You know, if you say your previous product (which is naturally dying off soon anyway) was so bad, it makes people want your new product that much more. “Gee, this new Windows 7 must be really GREAT!!!” Honestly, if you want to beat up on a version of Windows, you should have beat up on Windows 98. I am still having shivers from that one. Want to talk about blue screen?

I gotta tell you something. Maybe a lot of the people who are complaining about Vista are open source users. Over the last year, I have actually transitioned myself to use more open source programs than traditional ones. Maybe that’s an exaggeration. I use a few though. I really like what I use. Most of them are smooth, lightweight, fast and have frequent updates. I can’t wait for the day that I have the guts to actually switch to an open source operating system. That probably won’t happen for some time because I am not one to sit and struggle with configurations or trying to see what works with what. I am impatient. If it doesn’t work quickly, it gets uninstalled.

Here’s a question – What has Vista done to you? I would like to hear from real people with real problems. I’m sick of the biased bloggers out there who now have a venue to talk smack. I don’t believe any of them. The problem is, many people do. So, let’s have it.

Related posts

Happy Friday

Friday, August 21st, 2009

I guess it really doesn’t matter if it’s Friday or not, we work seven days a week ’round these parts. Yeah, we should really stop that.

Well, it’s kind of hard to stop working when it’s like 100 degrees and absolutely disgusting outside. I have been intermittently venturing out daily for some small landscaping projects. Every time I come inside, I am sopping wet with sweat. I mowed the lawn this morning, which wasn’t bad. Things changed when I had to start transplanting some shrubs. The minute I put any amount of effort into anything, there it comes. When that happens, I can hardly get my shirt off. It’s so nasty.

Okay, enough about that. Where have I been? Well, last week I had a few projects going on with the websites. I am trying to get some of the larger things done while it’s still Summer. Internet traffic generally picks up come Autumn, so I want to be in a good position. There are so many factors…oh so many factors. Changes generally take a few weeks to complete because as time goes on, you start realizing and remembering all the ramifications of what you are doing. I won’t continue to bore you.

I have been considering hiring a developer to assist with some programming on my sites. I did the math and figured that it was doable. Then, I started thinking about all the BS you have to deal with when getting someone else involved and I decided that outsourcing was the best route. So now, I am actually outsourcing to the company that created the software. It’s great…these guys are awesome and they know every corner of the software that they created. It has been a pleasure. So far, they completed two projects for me and are working on the third. I probably have about two more after this.

Outside…I have been transplanting some shrubs from the hill up front to various places around the property. It’s a miserable chore in this heat, but that doesn’t stop me. I just like to get out there. I am moving them so I have more room to mow. I am also going to be reseeding the entire lawn this Autumn, so I want to get that hill done. I want to plant a few more pines and some smaller fruit trees up there too. That should look pretty good.

I keep saying that I am never going to order any more of those little pine trees from Arbor Day again. I have varying luck with what I get. Then, I go ahead and order more. If you are going to order any pine trees from Arbor Day, I will tell you to stay away from the Blue Spruces. All (or almost) of ours died. All (or almost) of the Norway Spruces lived. Hmmm…if I do ever order any more of those trees, I am going to get the Norway Spruces. If I could just find some baby pine trees locally, I would be happy. That challenge is more difficult than it sounds.

We have been trying to go for our daily walks, but it’s getting hard to do that in this heat. We have been going about every other day. We tried to walk in the morning and then the evening to see which one was better. They are about the same. Either way, you still have to take a shower afterward.

It’s supposed to thunder storm this afternoon. It’s a little breezy outside right now and I am looking forward to the rain. It’s funny, all that rain we got in the beginning of the Summer is a distant memory. Now, the grass is crusty and the dirt is like concrete.

So anyway, happy Friday and I’ll leave you with this. Do you agree with me when I tell you some people just deserve to be smacked?

Blank

Related posts

The Cars That Flopped

Sunday, May 17th, 2009

Just a few minutes ago, I read an article on Yahoo! about the biggest car flops in the past 25 years. If you haven’t seen it yet, I’m sure you will. Yahoo! (and everyone else these days) seems to have a little issue with rerunning old stories when the run out of current news. Actually, I think I may have written about this myself already, but I think it’s worth mentioning again.

Here is my vote for the more annoying vehicle ever created on this earth – The Chevrolet SSR. I truly apologize if you have one of these vehicles, but there is something about it that just rubs me the wrong way. I think it’s the way it looks. I really couldn’t care less about what’s under the hood or what the interior looks like because I can’t get past the exterior. I dislike this vehicle so much, I would like to opportunity to crush a few of them in a car crusher. That’s that about that.

I am a little shocked and disappointed about Yahoo!’s number one flop choice, the Vector W-2. I bet not many people have ever heard of this car, but I used to have a poster of it hanging on my wall when I was a kid. I had no idea who made it or why, but I liked the fact that it went “0-60 in 3.9 seconds.” That’s all I know. I bought it from the poster section over at Ames (when they were in business) a long, long time ago. Who knew that it would eventually become a flop in something called the “internet” many years in the future. I was so naïve.

Still, I really think someone should do something about all of the remaining Chevrolet SSRs on the road out there. While they’re at it, they may as well wipe the streets clean of the PT Cruiser as well. Yee Haw.

Related posts

Twitter Anyone?

Friday, February 20th, 2009

I think this is going to be the second and last part of my “Complaining about the Internet” series. I just need to get this one out there.

Have you ever heard of Twitter? If so, you’ll know what I am talking about here. If not, I’ll explain what it is to you. Basically, Twitter is a website that allows you to post very short updates on the happenings of your life. It can go something like this…”I have my hand stuck in the toilet.” You can post as many updates as you would like all day long if you want to. People who follow your Twitter feed can stay updated on how many times you get your hand stuck in the toilet during the day. It’s marvelous.

I hope I am describing the service correctly; I have never actually used it.

Just because I haven’t used Twitter, doesn’t mean I can’t complain about it. Please, let me know if the following is annoying to you too.

The other day, I was watching the news or something like it. Maybe it was one of those news shows, I’m not sure. There was a fascinating story on about how a few surgeons were operating on someone and another doctor was Twittering the goings on of the operation. I didn’t think too much of it at the moment. Then, later that day, I started thinking more about it. I asked myself, “Self, why was a doctor Twittering about an operation as it was in progress?” I began having strange thoughts and my mind started to wander. I must confess, I got annoyed for a while. I finally calmed down and tried to look at the plus side of the whole thing.

Let’s look at the “goods” of Twittering during an operation:

1. Comfort – a family can sit around a computer or a mobile phone reading “Tweets” about their loved one’s operation.
2. Informed – The world can get a first hand look at what goes on during an operation.
3. Progress – The doctors and hospital can glow in the limelight of their cutting-edge technology.
4. Contact – Everyone can be proud of themselves that we no longer need to have any amount of human contact.

Today, I watched the White House press conference for a few minutes. I got to the part where the Press Secretary said, “I find it humorous how many press releases have gone out and how much Twitter activity has gone on about…” I had to stop watching. Are you serious?

Okay, I love technology just as much as the next guy, but at what point do we implant “Borg-like” cybernetic enhancements on the sides of our heads and call it a day?

I thought it was great when email arrived on the scene. What a time saver. Then, when I could read the news online, I was thrilled. When I could finally keep up with friends and families through their blogs, I just loved it. When people started broadcasting every heartbeat that occurs inside their chest cavities, I thought the line was crossed.

I tend to think that this modern computer age is a “tool” to assist us in our “real lives.” Did you read that? A “tool” to “assist” us in our “real lives.” I might be over-quoting here, but I believe we are headed towards a place that is quite the opposite of what I just said. It’s going to be like, “Oh man, I have to go out in the sunshine today? Can’t I just twist the knob on the side of my skull and relay all my thoughts to everyone who belongs to the collective? Well, if I must go outside, I am going to need some sunglasses.”

Exercise? Family time? Conversation? Hiking? Looking someone in the eyes? I don’t think so folks…I’ll just go to YouTube and watch a video of someone else exercising, email my family about what I did today, use Skype to have a face-to-face conversation, get a treadmill and call it a hike and email someone a picture of me. I think that about covers it.

As I am finishing up this post and re-reading it, I am seeing a theme among this post and my prior one about Facebook. It appears that I get most agitated at the constant updating of our lives. With my blog, I write every so often to give you folks some information about me. I do it with thought and care. I plan it, write it and then proof read it. I don’t do it randomly and I certainly don’t do it 30 times a day.

Let’s go back to the Tweet, “I have my hand stuck in the toilet.” I think many of us might ask, “Who cares?” Seriously, “W-h-o c-a-r-e-s?”

To think, I thought I was alone. This guy sums it up nicely.

Related posts

Listening To Radio Paradise – Commercial Free Internet Radio

Friday, February 13th, 2009

Yesterday, a little birdie told me about a fantastic place to listen to music online – Radio Paradise.

If you work on the computer a lot like I do, you know that good music can really make the day a heck of a lot better. I have been listening to a lot of MP3s, but that gets old after a while. After I heard the tidbit of advice yesterday about Radio Paradise, I decided to give it a try. I went over to their website, read about their “many styles and genres of music” on the homepage and then clicked on, “Listen.” I chose the “128k MP3″ link and clicked on it. A little “open” or “save” box appeared, and I chose “open.” From there, my Windows Media Player opened, the website disappeared and I have been listening to a pretty sweet variety of good music.

Strangely enough, this great, commercial free music is free to listen to. It’s pretty nice. Since these guys are giving me something for free (I may even contribute one day), I decided to give them some mad props over here at my wildly popular, attractive and globally active blog. I hope some of my visitors stop by the Radio Paradise to give these guys a try.

Related posts

Internet Population, Climate Change, Spaceflight, Pollution and Planets

Friday, January 23rd, 2009

Internet Population Passes One Billion; Top 15 Countries

The number of people on the Internet surpassed one billion in December, according to comScore. The actual number is probably higher than that (Internet World Stats counted nearly 1.5 billion Web surfers worldwide as of June 30, 2008). In any case, only between 15 and 22 percent of the world’s population is on the Internet. We have a long way to go.

Climate Change Killing America’s Trees at Ever Faster Rates

Trees in western North America are dying at faster and faster rates, and climate change is likely to blame. The mounting deaths could fundamentally transform Western forests because tree reproduction hasn’t increased to offset losses, according to a new study published Thursday in Science.

More Spaceflight Needed To Drive Evolution

There is fierce debate over the direction humanity should take when exploring the solar system. Plans for human exploration of the solar system and beyond often polarize opinions among the public and scientific communities.

Want to Live Longer? Cut the Pollution

Nobody pretends that polluted air isn’t terrible for your health. Clean up the skies over any dirty city and the people who live there will all but certainly become healthier. That, at least, has been popular wisdom, but until now, no one had ever put it to the statistical test. Now someone has and the results are striking.

Mars and Mercury Formed From Planetary Scraps

Mars and Mercury were formed from the scraps of Earth and Venus, according to a radical new theory of rocky planet formation. The model could explain some characteristics of Mars and Mercury that have long puzzled scientists, said Brad Hansen, an astronomer at the University of California, Los Angeles.

Related posts

Firefox Vs. Chrome Vs. Internet Explorer

Monday, January 5th, 2009

I am not sure why I am still using Firefox. I was turned on to it a few years ago, when I thought Internet Explorer was too slow. It was, compared to Firefox. It wasn’t because of lack of features, because I’m not a features guy. It was simply because Firefox appeared to “glide” around, instead of being “choppy.” I guess they differ in how they load each page.

For the most part, I am very happy with Firefox. It does everything I want it to do (load web pages), but I do have two pretty major compaints:

- Firefox crashes when I close it. I would say this happens 9 times out of 10. I did a reinstall, but that didn’t help. I have also been waiting for this problem to cure itself with each upgrade, but it never does.

- Firefox crashes when I download more than two files. I can download one, no problem. I can download two, no problem. When I try to download three, every one of my Firefox windows disappears.

I have the Firefox crash report set to “on,” but I don’t think anyone over there is reading these things. Who knows, maybe they are. There are many things I am about to read over here. Maybe they will offer some insight on what’s going on.

I may consider giving Chrome a spin, but wanted to get some opinions on it first. If you are using Google Chrome, what do you think of it? Is it worth the download? Is it stable? Do you like Chrome better than Firefox and IE?

Related posts




Free Online Ads
Motorcycle Classifieds
Boats For Sale
Free Auto Ads
Free Pet Classifieds
Free Classifieds