Latest Writings

Moving backups between servers using WHM and cPanel

It is surprisingly easy to move an account (website) from one cPanel based server to another.

  1. First, open cPanel on the old server, and go to the backups tab.
  2. Next, select Generate/Download a Full Backup
  3. Select Remote FTP server from the dropdown menu. At this point, enter the FTP details of any account on the new server. Any standard account will do, however do not create an account for the site that is to be moved on the new server beforehand, as you will only have to delete it again to restore the backup.
  4. For the port option, usually 21 is the correct value.
  5. Leave the Remote Dir value blank unless you have specifically created a folder for the backup (its easy to find anyway).
  6. Once you press the Generate Backup button, cPanel will begin to create an archive of the entire site contents, including mail, mysql, logs, web files. Depending on the size of the site this might take a few minutes. (But god damn servers can transfer between each other quickly!).
  7. Once the email notification arrives that the backup has been transferred, login to the new server as root. If you don’t have root privileges you might wish to contact your hosting company and hopefully they can take over from here.
  8. The backup file will usually be located in /home/username/backup-mm.dd.yyyy_xx-xx-xx_oldusername.tar.gz
  9. From the command line, navigate to the backup location, and enter something along the lines of
    mv backup-12.18.2008_11-08-09_oldusername.tar.gz /home
  10. In WHM on the new server, select Restore a Full Backup/cpmove file. At this point it should detect the archive located in /home/. If not you must have put the archive in the wrong place.  Enter the old username and press Restore - thats it!

How much better is that than moving an account database by database, db user by db user, mail account by mail account!

Posted on 18 December '08 by Steve, under Web Hosting. 3 Comments.

5 Questions Web Developers Need To Ask Themselves

It’s all very well for developers to create visionary frameworks and applications that only they understand - that is the freedom that makes web development great - until someone on the outside tries to work with it!

As far as i’m concerned, at the very least, the view/template of a web application needs to be changeable even to a web designer who has zero to minimal experience working with dynamic websites. Why - when we can create “beautiful” applications with minimal code repetition - because you are breaking the brilliance of code seperation. Its no different to seperating style and content. Lets face - usually, designers are good at design, and programmers are good at programming. Therefore the two skills need to co-exist, happily.

5 Questions to ask yourself:

1. How long would it take a pure web designer (HTML + CSS only) to change any element on any page?

2. How long would it take an average programmer to make some basic functionality changes, such as adding a new database table and running some pre-existing sanitation functions?

3. I’m looking at the website index. If I download index.php (or whatever) how many breadcrumbs do I have to follow to change, for example, the sidebar?

4. Is the folder structure sensible, and have the old files and folders been deleted?

5. Am I coding in a style that only I fully understand, on a commercial project that may rightfully be worked on by other developers that I may never speak to?

Posted on 6 November '08 by Steve, under PHP, Web Development. 2 Comments.

How to duplicate a phpBB3 theme

If you ever want to duplicate an existing phpBB3 theme, you might be sorely frustrated when you can’t seem to get any of your changes to take hold. It is sometimes necessary to go to the ACP, and hit purge the cache, however there is a further trick.

First, duplicate the theme folder you want to start with, and rename to your theme name.

Second, you need to go to the theme folder, and open style.cfg, /imageset/imageset.cfg, /template/template.cfg, /theme/theme.cfg, in a text editor. All of these files contain name = value. Rename all of these to your theme name.

Upload all of these changes, then head to the ACP and go to the “styles” tab. Click install on your theme.  On the left hand menu, go to each of the style components, and select install for each one. Then head back to the main styles page and click “details” for your theme. Select the imageset, template and theme from the dropdown menu.

Now you should be done!

Posted on 2 July '08 by Steve, under PHP. 1 Comment.

Funny Pic of the Day

Came across this funny site full of funny comic strips. Apparently I am the only person who has never heard of this, but in case i’m not, be sure to check it out.

Disclaimer: if your not into science or programming you probably won’t find it funny!

Posted on 28 May '08 by Steve, under Funny. No Comments.

Relaunch of Honda CBR250RR site

After an attempted wikipedia styled motorbike info site for the Honda CBR250RR resulted in steady traffic but hardly any contributions, i’ve decided to redesign my Babyblade site into an article directory and forums. I’m already seeing an instant improvement in contributions as people seem to be alot more comfortable with another PHPBB forum site.

A big thanks to everyone who has signed up and contributed so far, it’s great seeing new posts and members every day already after less than a week, and looking forward to creating a monster resource and community for MC22 owners.

See the Honda CBR250RR forums here. 

Posted on 5 March '08 by Steve, under motorbikes. No Comments.

htaccess on Yahoo Hosting

I have found a picture which I think really sums up my maiden experience with Yahoo Hosting.

Steaming Poo

For the vision impaired and slow learners, I am comparing Yahoo’s service to a steaming pile of shit. Though, when I think about it, the steaming part is probably inaccurate, as that would suggest their is some freshness about it - perhaps a pic of a dried out near-powder shit would be more accurate.

#1. No .htaccess support, means register globals and magic quotes always ON

#2. No cron job support, we are now expected to wait until 3.05am every night to manually run that script

#3. very, very slow

#4. majorly out-of-date software

#4. Crap control panel that tries to be clever

Yahoo (at your prices), you can do better.

Posted on 24 January '08 by Steve, under Rants. No Comments.

No DVD Sound in Windows Media Player?

Had a nice little surprise today after getting a brand new computer, I had no audio available in Windows Media Player. This is basically a result of the machine not having the correct codecs - you’d think Microsoft would be smart enough to include this stuff by default, but alas no. Even after upgrading to WMP11 I still had no luck.

After a bit of research, I discovered if you have this problem, you likely need the AC3 codec. Its dead easy to install - just go here, get the installer and install and restart Windows Media Player.

Posted on 10 January '08 by Steve, under Solutions. No Comments.

Funny Pic

Don’t hate frogs

Posted on 11 December '07 by Steve, under Funny. No Comments.

Funny Pic for the Day

Castle on Fire

Sorry had to provide linked thumbnail, full size messes with my layout!

Posted on 28 November '07 by Steve, under Funny. 1 Comment.

Call of Duty 4 PS3 Review

Call of Duty 4 is an all-round winner on the PS3.

It’s another game to take on this trend of a “movie” experience as you play through the single player campaign. It’s short and sweet. It’s all action. I probably haven’t been this excited about a single player experience since the Normandy Beach landing in Medal of Honour way back on the PS2.

Time has been kind to this brand of war simulation.

Call of Duty 4 takes us into the modern era rather than the WWII scenes of previous games. While the plot is not exactly unique or exciting, the execution of this game is simply awesome. You get to do many cool things, like shoot a mini-gun, fly over cities in helicopters, be a gunner on a attack aircraft, see a nuke go off (in game) and lay low in long grass in camouflage while waiting for enemy patrols to pass within inches of your position.

The graphics and audio are simply breathtaking. In comparison to prior releases like Call of Duty or Rainbow Six, you can really compare and see how game developers are starting to get to grips with how to utilise the PS3. Framerate is smooth as, audio attention to detail is excellent. All those small things you take for granted are there, and plenty of innovation to provide a refreshing and pleasurable experience.

Something I find particularly pleasing is the way the game loads. You never feel like your far away from the action and it makes it very difficult to walk away from the game until its done. You’ll be waiting for literally a few seconds before your being entertained by a clip scene as the game elements load in the background. The load times are also very reasonable and it does put other games to shame how much detail they load up in such a small amount of time.

But 8 hours of a single player campaign doesn’t cut it in this day and age.

Fortunately Call of Duty provides some serious replay value, with what looks like substantial “hidden” content that is unlocked as certain achievements have been met. For example after completing single player, I discovered a handful of arcade missions were now available, as well as the ability to replay any mission from single player. The arcade missions take a sortof Time Crisis appeal, where you are challenging yourself to be accurate and fast to get a big score.

There is a co-op mode I have not even tried, they are usually a barrel of fun.


The online multiplayer action is quite interesting from the limited time I spent with it (had to return the game to the video store!). Sure it basically encompasses the standard Death Match and Team Death Match, however they have an interesting take on things, where, if you start getting a kill streak going you steadily unlock better and better things.

In my couple of games I managed to get a radar a couple of times, but clearly more kills equals being able to call in attack choppers, air strikes and who knows what else. What an excellent idea that was! I suspect it could add some serious replay value to the game.

Congratulations to the team behind Call of Duty 4 on PS3!

Add this game to your Christmas Wishlist! Or just buy it now!

Posted on 23 November '07 by Steve, under PS3. No Comments.