Use Mandrill to Send Mail on Mac Localhost via Postfix

If sending mail via your localhost is unreliable or not working, try setting up postfix to use an SMTP account through Mandrill.  You can essentially use any SMTP account, but Mandrill has nice features that allow better monitoring of messages and if they are being delivered. Edit the postfix config file. Add the following settings to […]

Filter by Multiple Taxonomies with SEO-Friendly URLs in WordPress

Note: The rule with pagination needs to come first otherwise it will use the non-page rewrite rule. Extensions for Testing These extensions are helpful for testing during development of your rewrites.  Once you have completed development and everything is rewriting as desired these extensions can be removed. Monkeyman Rewrite Analyzer Monkeyman Rewrite Analyzer allows you […]

Dump & Import a MySQL Database

The below statements assume some options are being used such as –add-drop-table, –add-locks and gzip compression.  These are optional. Dump Database NOTES: –single-transaction and –quick are added to prevent taking down a site when dumping a large DB (thanks to this post) Import Database View Your Progress You can run the commands below to use […]

Setup Git on Remote Server

Rather than FTPing all your updates to your remote development or production server, you can also set up the server to access your remote Git repository and update the site with a simple git command. This way you will ensure all the files have been updated to the exact branch version needed.  Below are instructions […]

Check Space Usage on Linux Server

Quick Overview Quickly check the used vs free space on your server. Sample Result Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_centos64-lv_root 37G 19G 16G 56% / tmpfs 939M 0 939M 0% /dev/shm /dev/sda1 485M 52M 408M 12% /boot Find Largest Files/Folders Quickly hunt down your biggest space suckers by using this to find your […]

Setup Fresh CentOS Linux Web Server

Create User Create New SSH User and add to Sudoers File This will create the user, setup the password and open up the sudoers file for editing. Add your new user below the line where the “root” user is defined. Setup Public/Private Key Pair This is optional, but is a good idea. @see Add […]