(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



What a difference a (static) page makes


2009/02/13

As convenient as it is to drive pages with cgi scripts, I had to partially give up on that because this shared web server just couldn't handle all the forks. That's not the fault of the hosting company; it's just that I've been getting too much traffic now and then. So today I began converting some pages to static pages - no dynamic content except for the ads.

Of course I didn't do this manually - I wrote Perl scripts to handle the work. However, I did it partially manually because I wanted to take this opportunity to update meta tags where needed. The scripts I wrote would show me the current tags and give me the choice of editing them or just doing the conversion. I spent a few hours on this and converted 77 files to static pages.



Just 77 out of more than 13,000? How's that going to help? It will help more than you might think: those 77 pages accounted for more than half of all traffic here last month. Just converting those will cut the number of cgi-bin forks in half. I can actually see that instantly in "w" - I haven't seen such low load averages in years!

This conversion does mean that I had to give up on the fly counting of page views.. that's not so important. I like to know that information, but it's not critical. I can live without it. Other than that, everything should look pretty much the same and will load faster when we're getting pounded on a little. That's worth the effort. I'll slowly convert other pages as I have some other reason to edit them.. I'll probably never get to 100% static but I don't need to right now anyway.

So this gives me some breathing room - we can grow a little bit more before I have to move off shared hosting.




Click here to add your comments





Sat Feb 14 01:24:12 2009: Subject:   MikeHostetler
http://mike.hostetlerhome.com
gravatar
I'm glad that it worked for you. It's better in the long run than mod_perl -- and perhaps easier to do, too.

But mod_perl isn't a bad idea overall, though.



Sat Feb 14 01:27:12 2009: Subject:   TonyLawrence

gravatar
I actually have a few parts of this running under mod_perl but I had never gotten to fixing up the main code - every time I even thought about it I got a headache.. :-)

This will keep me going for a bit..

Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



numly esn 74110-090213-991249-78
numly barcode

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

book graphic Internet Income guide

My Hard Truths about Easy Money on the Internet will show you how to make money on the Internet!

 I sell and support
 Kerio Mail server




pavatar.jpg
More:
       - Blogging
       - Web/HTML


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress