Categories
Apps & OS's Technology

Installing NginX, MySQL, PHP, APC and Memcache on FreeBSD 9.0

The aim of this post is to document the installation of Nginx, MySQL, PHP, APC and Memcache specifically to work as a web application server for hosting a FuelPHP application. First of all I will assume that you have already installed the base OS, configured an IP address and logged into your server using the […]

Categories
Coding

An easy way to search and replace domain names in database records

Recently I had to move a WordPress site from one domain to another (‘beta’ to ‘www’), when using the Media tool, it automatically adds the current full site URL to the post database records. This is a very useful SQL snippet to do a full search and replace on the wp_posts table. update wp_posts set […]

Categories
Apps & OS's Coding Technology

Installing the latest version of Ruby & Ruby On Rails on MacOSX (using RVM)

Installing Ruby (the latest version) and Rails (using RVM) on MacOSX is rather easy, this quick post will run you through installing Ruby and Rails using RVM (Ruby Version Manager) which apparently what all the ‘cool kids’ use to install rails with etc. By following these few simple steps and you should be up and […]

Categories
Coding

How to convert a multidimensional array to an object in PHP

Today I was working on creating an object from an array of data, I didn’t want a full blown class as I was only accessing the data as application settings  and thankfully due to PHP’s stdClass class this can be easily achieved like so:- $obj = new stdClass($array); or like… $obj = (object) $array However, problems occur […]

Categories
Coding

Creating *NIX user accounts without need for a password prompt!

It is likely that in future I will be implementing SSH access and generally changing the way that users are handled by ZPanel (on the *NIX platform). Currently all user accounts across ZPanel are ‘virtual’ accounts and not system accounts and for various reason’s I may want to change this in future. I have written […]

Categories
Coding Technology

Enable auto-completion for CodeIgniter development in NetBeans 7.2

I thought I’d share up this very useful script that I found today, I guess that as you’re viewing this page you want to enable the lovely code auto-completeion features that NetBeans supports and as by default you’ve found that NetBeans doesn’t support this for CodeIgnitor. So here’s the fix:- Download netbeans_autocomplete_codeigniter file (Contains mainly PHP […]

Categories
Apps & OS's Coding

Installing APC and Memcached on Ubuntu 12.04 with nginx

Following on from one of my previous posts (Installing nginx on Ubuntu 12.04 as a high performance web server) I have installed APC and Memcached on my Ubuntu 12.04 server It’s very simple to do and well worth it:- apt-get install php-apc Now restart your PHP FPM service like so:- /etc/init.d/php5-fpm restart You can confirm […]

Categories
Apps & OS's Technology

Configuring IPTables for a Ubuntu 12.04 web server

I recently re-built my personal web server and did a whole load of optimisations and server harding so I thought I’d document the installation of IPTables which made up one part. IPTables is a well known Linux firewall, I’ve decided to use it on my server as it’s easily avaliable from the Ubuntu package repository… Let’s start […]

Categories
Technology

Installing nginx on Ubuntu 12.04 as a high performance web server.

I’ve been working on a number of large websites recently all of which have been developed on-top of my own web application framework called RocketPack. RocketPack is a simple to learn and code-on MVC framework  written in PHP, in my opinion (but then again I guess I’m biast) contains a nice set of utility classes […]

Categories
Coding Technology

Installing Tomcat 7 on MacOSX

I’ve made the switch over to Apple on my development machines and as I’m starting my new company soon I’ve got myself a new MacBook Pro machine of which I will be transporting to and from the office so I’ve been installing my entire development on it and thought I’d blog about how to set-up […]