Quick
Sat, Mar 30, 2013

Another one I never remember the exact syntax for (nor how to spell privileges correctly). Simple thing - creating a user for MySQL and grant privileges. Less is more.

CREATE USER '%USER%'@'%HOST%' IDENTIFIED BY '%PASSWORD%';
GRANT %PRIVILEGES% ON %DATABASE%.* TO '%USER%'@'%HOST%';
FLUSH PRIVILEGES

Sat, Mar 23, 2013
You want to set a canonical address for your site. For example, I chose www.rabblemedia.net and I want rabblemedia.net to redirect to www.rabblemedia.net. Google likes this, though doesn’t care which one you choose. It’s a quick redirect for Apache or nginx, but I can never remember the syntax. Apache: <VirtualHost *:80> ServerName domainname.com Redirect 301 / http://www.domainname.com </VirtualHost> <VirtualHost *:80> ServerName www.domainname.com DocumentRoot /path/to/content CustomLog /path/to/logs/domainname.com/access.log combined ErrorLog /path/to/logs/domainname.com/error.log </VirtualHost>