Archive | February, 2014

dns_thumb

The Domain Name System Explained

Domain Name System DNS Explained – A brief history Computers that are attached to the internet are each identified by unique IP addresses in order that messages can be routed correctly between them. IP addresses are numeric in nature (e.g. 194.189.242.76), and are rather like telephone numbers insofar that they are not particularly easy to […]

cpanel

cPanel : useful shell commands for web developers

cPanel offers a lovely graphical interface for managing your files and databases, but sometimes it lacks the flexibility and power to answer all of your problems. Many cPanel hosts can provide you with SSH access to your account. SSH offers a secure terminal session, also called a Command Line Interface (CLI), giving you access to […]

Linux Ninja Tux

Linux : ModSecurity log analysis with Modgrep

ModSecurity is a popular open source Web Application Firewall that can be installed with popular web servers including Apache, IIS, and NGINX. Modsecurity log analysis can be configured via sequential or concurrent audit logging. Concurrent logging offer improved performance on extremely busy servers, but it creates a LOT of files and directories, so for simplicity […]

wordpress

WordPress : Password protect wp-admin directory and wp-login.php and why

Hardening WordPress by adding both wp-login.php AND wp-admin password protection is a great way to protect your website from hackers. But isn’t it safe enough if I use a strong password on the standard wp-admin login? Well, yes, from a brute force attempt, but single factor authentication (simple username and password) means that there’s only […]

hosting

Hosting : Test a website before changing nameservers

Checking, testing and previewing a website on a new server before switching DNS settings used to be relatively easy. Historically you would test your website via Apache’s module. If your new hosting account username was, say, client1 then the temporary URL to the root of your website might be something like: http://hostingcompany.com/~client1/ Using this method […]

wordpress

WordPress : Pass custom variable as URL parameter

Sometimes you need a simple way of passing a custom URL variable to WordPress. WordPress has to be quite organised in this respect as it passes a lot of arguments back and forth, so unless you want to grub around directly with the  array, then this solution is a little more elegant. The first thing […]

Linux Ninja Tux

Linux : Copy directory contents to another directory

Copying the contents of one directory into another sounds easy when you can drag and drop – but when you are faced with the command line, sometimes the simplest of things can become a headache. For the purpose of this tutorial, let’s assume our pretend file structure is as follows:

The way Linux expands […]

LokiWare Attachment Tamer

OSX : Force mail.app to show attachments as icons

Mac mail.app has a really annoying habit of displaying attachments inline When viewing email messages, instead of a simple icon you find the contents of your attachments are displayed. It’s particularly annoying when you want to print a short email, which has a huge PDF or image attached to it. You can right click the […]

iphone_cpanel_featured

iOS7 : How to setup iPhone email for cPanel accounts

Setting up your iPad or iPhone email with a cPanel based hosting account is a manual process, but fortunately it’s fairly easy – although it does require a degree of concentration and patience. Apple have vastly improved iOS7’s ability to setup iPhone mail with popular third party services like MS Exchange, Google Gmail, Yahoo, AOL, […]

shortcodes

WordPress : Keep excerpt shortcode contents

Have you found that WordPress strips excerpt shortcodes in your blog posts? The excerpt is a special field associated with each WordPress post intended to provide a teaser. However, managing a separate excerpt for every blog post can become tedious, so WordPress offers a way of providing an excerpt on the fly by taking the […]