by CBrown | Aug 1, 2013 | Servers, Work
Put this at the end of your .bashrc function cz { zonefile=$1 zone=$(basename $zonefile .zone) named-checkzone $zone $zonefile } Then you will be able to use cz to check you zone files. Example: cbrown$ cz...
by CBrown | Jan 31, 2013 | OSX, Servers, Web Sites
Sometimes working with a directory full of subdirectories and files you need to compare the directories and files to another version of the files. This comes in extremely useful when restoring a hacked website. To do this you need to have the old copy and the...
by CBrown | Jan 31, 2013 | Web Sites
After setting up your website it is always a good idea to change the directory and file permissions. This makes it a little harder for an attacker to compromise your site. For Joomla and WordPress it is best practice to set your directory permissions to 755 and your...
by CBrown | Nov 16, 2011 | Servers
sudo echo “UseDNS no” >> /etc/ssh/sshd_config This prevents the server from doing a reverse DNS lookup on the IP address, which apparently takes forever sometimes.
by CBrown | Jun 17, 2010 | Notes, Servers, Technology, Web Sites, Work
Server Install Dirvish, rsync and ssh on the backup server: apt-get install dirvish ssh /etc/dirvish/master.conf should look something like this: bank: /data/backup Runall: expire-default: +15 days expire-rule: #MIN HR DOM MON DOW STRFTIME_FMT * * * * 1 +3 months * *...