kieranbarnes Independent PHP, WordPress & CubeCart Programmer

Protect wp-admin with Nginx

Posted on May 1, 2012

Posted by kieran

Are you running WordPress on nginx? A massive security win is securing your wp-admin area by limiting IP access. How? Easy.

Drop these lines into your nginx.conf or relevant vhost config file

Upgrading to MySQL 5.1 in cPanel/WHM

Posted on August 8, 2011

Posted by kieran

Upgrading to MySQL 5.1 in cPanel is currently not the easiest thing in the world. I've seen guides detailing disabled various cPanel updates, hacking cPanel scripts and even installing your own 5.1 RPMs, all of which will probably end in tears at some point when cPanel runs one of its update scripts.

Heres the easiest and safest method I've found.

Installing RepoForge (RPMForge) in CentOS

Posted on August 6, 2011

Posted by kieran

RepoForge (RPMForge) contains over 5,000 extra packages for CentO. Many new packages and some updated packages not yet approved into the CentOS release repo.

1. Download the rpmforge-release package. Choose one of the two links below, selecting to match your host's architecture. If you are unsure of which one to use you can check your architecture with the command uname -i

Disable Virus Checking in Firefox

Posted on July 15, 2011

Posted by kieran

What does the virus  scanning in Firefox really do? Apart from make me wait to open my downloads.

Nothing.

Lets disable it.

Debugging WordPress

Posted on May 20, 2011

Posted by kieran

Debugging WordPress is actually quite simple. Stop yourself going grey and or bald.

In your wp-config.php, replace

  1. define('WP_DEBUG', false);

With

  1. define('WP_DEBUG', true);
  2. define('WP_DEBUG_LOG', true);

This will turn on debugging and debug events will be wrote to wp-content/wp-debug.log. Bonzer!

Optionally, you can add, to turn off on screen error reporting if your php.ini isn't already doing so.

  1. define('WP_DEBUG_DISPLAY', false);
  2. @ini_set('display_errors', 0);

 

Tagged as: , 1 Comment

Installing nginx & PHP-FPM securely on CentOS

Posted on March 9, 2011

Posted by kieran

I won't go into the reasons why you should install nginx, if you're here, you've already decided.
Here's how I installed nginx and PHP-FPM on CentOS.

SSH Security Ramblings

Posted on November 9, 2010

Posted by kieran

SSH - Secure Shell isn't that secure. If you're not using it behind a Layer 7 firewall or an enhanced security daemon like cPanel's cPHulk or even just the default config isn't secure.

What can you do?

Super simple Active Directory with Samba

Posted on July 9, 2010

Posted by Kieran

I needed a super simple, straight forward way of installing samba on Ubuntu and joining it to an Active Directory domain.
This doesn't allow you to login to Ubuntu with domain credentials but allows you to share and access files with domain credentials.

Heres how its done

Synchronizing time on a Windows 2003 domain controller

Posted on April 26, 2010

Posted by Kieran

In a Windows domain environment its incredibly important that all clients & servers share the correct time. Its also important that this time is correct, otherwise your users go home early.

Here we'll set your domain controller to get the time via NTP. Windows clients will then automatically collect the right time from their domain controller.

Installing mytop on cpanel

Posted on February 19, 2010

Posted by Kieran

abstract computer network in 3d over a white b...

MyTop is one of the best MySQL monitoring tools available, written by a MySQL guru, Jeremy Zawodny.

Its vital for monitoring your MySQL health, especially in a shared hosting environment.

Page 1 of 3123