Category Archives: General

Custom virtual host Apache configuration for CPanel/WHM

Here’s how I applied some custom virtual host configuration for a CPanel account. Note that you need to have root access to the box. (Or get your hosting company to do it for you) Example user: foobar Example domain: foobar.co.uk Create the directory structure/usr/local/apache/conf/userdata/std/2/foobar/foobar.co.uk. Where: std = standard config (ssl for secure hosts) 2 = [...]

Posted in General | Tagged , | Leave a comment

OS X Terminal Keyboard Shortcuts

Given the lack of home/end keys that behave properly under OS X, when using Terminal Control-A : Move to the beginning of the line. Control-E : Move to the end of the line.

Posted in General | Tagged , | Leave a comment

Create a new MySQL database with mysqladmin

Quickly create a new MySQL database. mysqladmin -uroot -p create dbname

Posted in General | Tagged | Leave a comment

xattr – Extended file attribute in Snow Leopard

If I ZIP up a web site via cpanel, then download and extract it to my MacBook, each of the resulting files has the quarantine extended attribute set. The attribute can be quickly deleted for each file with the following command run from Terminal. Assuming the files are in the the directory www. find www [...]

Posted in General | Tagged , , | Leave a comment