Archive | June, 2011

SSHD Failed to start on fresh VPS

27. June 2011

0 Comments

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...

Import BCP output file into MySQL database

19. June 2011

2 Comments

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...

Re-create corrupt /tmp directory on cPanel server

8. June 2011

2 Comments

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...
View in: Mobile | Standard