Mount server file system over SSH on Ubuntu 12.04

I'm now running my own instance of Ubuntu 12.04 server at home and its great. I tend to use PHP Storm as my development IDE and I don't like how it copies all the files over to your system if you choose the remote options. Therefore mounting the remote file system as though it was local is idea. Below are the commands required, they don't need much explaining.

Installing Ubuntu 12.04 Desktop for Drupal Development

These are the steps I went through to get my new install of Ubuntu 12.04 up and running.

Server Setup

http://klau.si/dev - Setting up phpmyadmin, MySQL, PHP and Apache. If you are exposing Apache to the world then I would advise disabling PHPMyAdmin from remote access. Simply add the following to /etc/phpmyadmin/apache.conf

Installing ionCube Loader 5.3 on MAMP in 2 minutes.

Today I needed to install ionCube 5.3 to run WHMCS locally and it was surprisingly easy :)

  1. Download ionCube from  http://www.ioncube.com/loaders.php
  2. Copy the whole ioncube folder to
    /Applications/MAMP/bin/php/php5.3/lib/php/extensions/
  3. Open /Applications/MAMP/conf/php5.3/php.ini
  4. Add this line somewhere around line 1088 
    zend_extension="/Applications/MAMP/bin/php/php5.3/lib/php/extensions/
    ioncube/ioncube_loader_dar_5.3.so"
  5. Restart Apache.

Done.

SSH Keys and Springloops on OSX

OK so tonight I had a frustrating problem connecting my desktop computer to Springloops. I had generated the SSH keys the same way as ever, my config file looked good but I couldn't get away from the following error: Access denied. You are trying to connect to a project to which you are not assigned yet or your key is not setup properly. fatal: The remote end hung up unexpectedly I finally found a solution. I figured that it could somehow be using another SSH key so I added the following to my ~/.ssh/config file.

REA XML Parser and WordPress

A while back I was asked to display a directory full of REAXML files on a WordPress site. To accomplish this I created a class which would convert the XML files into an associative array and then a plugin to use wp_insert_post() for each property. realestate.com.au accepts property data in their proprietary XML format as a means to import properties into your account on their website. Due to this feature many businesses are already producing REAXML documents from their custom software or another XML Provider, with this REAXML parser we are able to easily parse the data into our website.