Tim Igoe's Web Design, Development and Hosting Blog

Tag Archives: servers

Monit Rules

Posted on by Tim Igoe

As a follow on from my post on Monit, I have compiled a selection of rules that can be used to monitor various services on your server. check process sshd with pidfile /var/run/sshd.pid start programĀ  “/etc/init.d/sshd start” stop programĀ  “/etc/init.d/sshd … Continue reading

Posted in Linux, Servers | Tagged , , , , | Leave a comment

Monit – Keeping Servers running even while asleep

Posted on by Tim Igoe

One of the downsides to working on the internet, is that it never stops – it is a 24 hour a day, 365 day a year system. There is not ‘break’ in it, no time to rest. When you run … Continue reading

Posted in Linux, Servers | Tagged , , | Leave a comment

Important Hosting Considerations

Posted on by Tim Igoe

“It is really important to spend time considering all the options when picking a web host for your shiny new website. When you launch your site, the last thing you want to happen is for it to go down due … Continue reading

Posted in Servers | Tagged , , , , | Leave a comment

Automatic Backup Scripts

Posted on by Tim Igoe

This assumes that you have 2 Linux machines / servers – one to backup to the other. To enable the script to automatically login to the destination server you will need to enabled ssh key based logins. First off, create … Continue reading

Posted in Servers | Tagged , , | Leave a comment

New Server

Posted on by Tim Igoe

I have just started the move to a new server, all my sites will be migrating. The new server should be a lot more powerful, so all my sites should become more responsive. If you notice any problems with the … Continue reading

Posted in Servers | Tagged , , | Leave a comment

PHP – Check Service Status

Posted on by Tim Igoe

Got multiple servers? Want to know they are still up by looking at once place? Want to give your users an easy to see status page? A quick way to test if a server or service is up is to … Continue reading

Posted in PHP | Tagged , , | Leave a comment

PHP – Stop Site using too much CPU

Posted on by Tim Igoe

Got a popular site that sometimes gets out of control with CPU usage? Need to curb it so it doesn’t spiral. With this little snippet of code in your page (near the top), it makes a quick check to see … Continue reading

Posted in PHP | Tagged , , | Leave a comment

PHP – Page Generation Time

Posted on by Tim Igoe

This little snippet of code will enable you to put a page generated in bit at the bottom of your pages. function maingetmicrotime() { list($usec, $sec) = explode(” “,microtime()); return((float)$usec + (float)$sec); } function page_start() { global $TheStartTime; $TheStartTime = … Continue reading

Posted in PHP | Tagged , | Leave a comment