,

How To Delete Mails From Or To A Specific Email Address From Your Mail Queue (Postfix)

If you get hit by a spam attack that floods your server with hundreds/thousands of emails from the same sender email address or to the same recipient email address, you can clean your mail queue from these emails with one single command before the mail flood takes your server to its knees. You can check your current mail queue like this: postqueue -p To delete all mails from the mail queue that come...
Continue reading How To Delete Mails From Or To A Specific Email Address From Your Mail Queue (Postfix)
,

Setting, Changing And Resetting MySQL Root Passwords

This tutorial explains how you can set, change and reset (if you've forgotten the password) MySQL root passwords. Time and again I see problems like mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: YES)'. So I thought it's time to remind you how to solve MySQL related password problems. If you are just looking for a quick fix how...
Continue reading Setting, Changing And Resetting MySQL Root Passwords

Operating System Usage Over the Next 4 Years

These figures are extrapolated from W3Schools.com. I have predicted data for the next 4 years with a linear scale based on the last 5 years. The vertical axis has a logarithmic scale so the OSX and Linux data is meaningful. The graph shows a very slight decline in Windows usage and a notable increase in Apple OSX and Linux usage. Obviously there are plenty of...
Continue reading Operating System Usage Over the Next 4 Years

4 Simple Apache tweaks to speed up delivery of your web site

Add these simple directives into your Apache configuration and you should notice a considerable increase in speed in the delivery of pages. As a working example, I performed these tweaks on http://www.shortlist.com/. Here are the before and after stats: .gallery { margin: auto; } .gallery-item { float: left; margin-top: 10px; text-align:...
Continue reading 4 Simple Apache tweaks to speed up delivery of your web site

Installing PHP 5.2.x on RedHat ES5, CentOS 5, etc

I’ve had to follow this tutorial a few times myself now so decided I should share it with the world. A few of our applications which make use of SOAP get a Segmentation Fault if run with PHP 5.1.x or lower. We believe this is due to a bug in PHP but can’t be sure, regardless it works fine in PHP 5.2.4 and above. Problem is, RedHat ES5 does not have support at this time for anything higher than 5.1.6,...
Continue reading Installing PHP 5.2.x on RedHat ES5, CentOS 5, etc

Setting Up a yum Repository

While there are many Linux users who prefer other tools for doing their patch management, yum is designed for RPM-based distributions. Its popularity has grown as Fedora Linux has adapted yum as its primary patch management tool. This chapter will help you set up and configure a yum repository for your Linux distribution. Configuring a Local yum Server The skills you need to configure a local yum...
Continue reading Setting Up a yum Repository

Adding Yum to CentOS 5

Adding Yum to CentOS 5 I use a lot of VPS and often times, they don’t actually have yum to make my life easier. So here is a quick HOWTO on installing yum on a CentOS box. This assumes that you have rpm and wget already installed. Note: This will only work on CentOS 5.2 while the mirror is still active. Run the following code in a temporary directory to download all the RPMs.#!/bin/bash for...
Continue reading Adding Yum to CentOS 5