Shell Script To Auto Restart Apache HTTPD When it Goes Down / Dead
Here is a simple shell script tested on CentOS / RHEL / Fedora / Debian / Ubuntu Linux. Should work under any other UNIX liker operating system. It will check for httpd pid using pgrep command
pgrep command
pgrep looks through the currently running processes and lists the process IDs which matches the selection criteria to screen. [...]
Automatically back up your entire web server files and databases to Amazon S3
Christina Warren has a comprehensive and excellent tutorial on creating a Ruby script to back up your entire web server, including databases, and upload them directly to an Amazon S3 bucket. The tutorial is geared toward Media Temple, but I imagine could be adapted to other hosts. She also did a screencast demo demonstrating it [...]
Create a simple hit counter using PHP and MySQL
In this article I describe how to use PHP and MySQL to produce a simple counter that can be placed on a web page. PHP and MySQL work very well together, and this article shows, hopefully, how easy they are to use to produce a useful little utility.
In order for the counter to work, the [...]
Website speed: How fast should your website be?
How fast does your website load and how fast should it be? People in the industry often talk about the mythical sub-second page load, but how many websites actually deliver sub-second response times and is it a realistic goal or expectation?
The most popular websites on the web today do load quickly. For example, yahoo.com and [...]
JSLabs Blog: 5 tips for creating high performance web apps
In this new post, Justin Silverton shares a few helpful hints for creating high performance applications in PHP:
use multi resultset queries to your database rather than many small ones
page/object caching
gzip compression
tune your web server
Don’t save performance testing for the end of the project
Each of the items has explanation and links to more details on them [...]
Is a Virtual Private Server right for you?
In our increasingly connected world, we’re always in search of more power and more control – while maintaining a reasonable price. Dedicated servers, at costs exceeding $100 a month, can be daunting to some of us. Are Virtual Private Servers, or VPS, the solution? They may be.
This article will teach you what a VPS is [...]



