16. December 2011

0 Comments

Change Domain within WordPress Posts

I find myself using WordPress more and more for client websites. Since 90% of the time, I develop on a dev domain, it means that the links inserted by WordPress point to the dev domain which presents an issue when it’s time to hold your breath and take the new site live on the clients [...]

Continue reading...

27. June 2011

0 Comments

SSHD Failed to start on fresh VPS

After trying to start ssh on a fresh VPS, I got the following error message: sh-3.2# service sshd start Starting sshd: Could not load host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ssh_host_dsa_key Disabling protocol version 2. Could not load host key sshd: no hostkeys available — exiting. [FAILED] The fix is simple, just run [...]

Continue reading...

19. June 2011

2 Comments

Import BCP output file into MySQL database

Recently, A project that I was working on required that I import a fairly large BCP file containing around 260k entries. I spent quite a while trying to work out the best way to import it directly into my MySQL database with little or no pre-processing required. The answer turned out to be quite simple, [...]

Continue reading...

8. June 2011

0 Comments

Re-create corrupt /tmp directory on cPanel server

This is another one of those things that I can never remember off the top of my head, so I’m sticking it here for reference. I believe it was originally posted somewhere on the cPanel forums by the almighty chirpy. lsof /tmp   # Umount /tmp and /var/tmp: umount -l /tmp umount -l /var/tmp   # Remove [...]

Continue reading...
See more articles in the archive
View in: Mobile | Standard