News & Blog

How I Resolved My Ubuntu Sendmail Woes

November 21st, 2015 - Posted by Steve Marks to Server Management, Web Development.
I’ve hosted my sites with 1and1 for years now and after countless issues with them (mainly their woeful support) I’m finally taking the time to move my sites away. After much investigation I opted to go for DigitalOcean. Firstly, if you’re looking to move your sites somew...

How To Install SOAP for PHP on a 1&1 VPS

July 30th, 2015 - Posted by Steve Marks to PHP, Server Management, Web Development.
If working with a third party service it’s possible that you might need to communicate with it using SOAP. This is exactly the scenario we found ourselves in today. The issue was however that the 1&1 VPS that the site was hosted on didn’t have SOAP, and inparticular SOAPCl...

‘Locate’ Linux Command Showing File That Doesn’t Exist

October 17th, 2013 - Posted by Steve Marks to Server Management, Web Development.
I use the ‘locate‘ command quite a lot for finding files when I’m not sure where exactly they reside on a server. I came across a scenario today where I ran the ‘locate’ command and it returned the file that I was looking for. However, when I navigated to the ...

‘Too Many Connections’ MySQL Error From Sites on 1&1 Dedicated Server

October 10th, 2013 - Posted by Steve Marks to Server Management, Web Development.
It’s a developers worst nightmare to look at one of their sites and an error appear like so: Error connecting to MySQL server: Too many connections This is exactly what happened to me last week when, not only a single site went down with this error, but every website on the server. F...

Jump to Top or Bottom of File Using the Nano Linux Command

September 23rd, 2011 - Posted by Steve Marks to Server Management, Web Development.
When viewing and editing files, Linux’s nano command can be very useful. One of the primary reasons for my usage of nano is reading log files that can be hundreds, if not thousands of lines long. In this scenario one of the most useful commands required is to quickly jump to the top ...

Get Size of Files in a Linux Directory Modified in the Past 24 Hours

July 25th, 2011 - Posted by Steve Marks to Server Management, Web Development.
With a system thats regularly creating files on-the-fly it’s important to keep track of the filesizes to monitor disk usage. One of the daily tasks I perform is to track the filesize of files created within the last day by running the following on the command line: find /directory_na...

Get the Number of IP Address Occurrences in the Access Log

July 19th, 2011 - Posted by Steve Marks to Server Management, Web Development.
I had a scenario recently where bandwidth usage on a server was becoming an issue. As a result the need arose to find out if any third party websites or scripts were excessively referencing the server. To do this, one of the steps taken was to identify and locate any IP addresses repeatedl...