Pick our brains...

All posts in Server

How to use WP-CLI

I wanted to write some quick notes regarding the feedback that we got from our developers about how to export and import databases using WP-CLI. What a wonderful tool it is! WP-CLI stands for “WordPress Command Line Interface”. There are a bunch of commands you can use to manage WordPress . . . Read more

Install Grunt & SASS (plus dependencies) for an account/site on shared hosting

This is needed when Grunt and SASS plus all dependencies are not installed on a Shared host. This is pretty typical for LiquidWeb shared hosting. Start by using SSH to log-in to the server as the relevant account. Example: ssh account@server.com Install RubyGems + SASS Issue these commands to download . . . Read more

Install GIT on shared hosting

This is needed when you need GIT and the server you are using is a shared host that does not already have GIT installed globally (eg. in /etc/bin or /usr/local/bin) Step-by-step guide First run gcc –version to make sure the compiler is installed and supports the installation. Edit the .bashrc . . . Read more

How to Use Rsync, a Very Beautiful File Transfer & Synchronization Tool

Rsync is an amazing tool for direct server-to-server data transfers.  Very speedy, and very smart! You can use rsync to do synchronizations between source and destination, comparing them, and copying only what’s changed.  What’s especially amazing is that rsync only transfers the “parts” of files that are different.  This works . . . Read more

How to Tune SpamAssassin Server-Side Spam Filters

The SpamAssassin server-side spam email filter employs Bayesian statistical algorithms to tell the difference between spam and ham.  As such, these filters do their best when they’re “learned”.  Here are some examples from a sample account. Let’s assume we’re working with a cpanel account called “oicom”, and we want to . . . Read more

Server Load & Loadwatch

Note: These notes pertain to PM servers.  Other servers may vary… Loadwatch Logs Located In: /root/loadwatch   To Summarize a Particular Logfile: (when in the “/root/loadwatch” directory, as root) /scripts/loadparse <filename_of_logfile>   Cumulative Log of Loads: /root/loadwatch/checklog   See also: http://linux.about.com/cs/linux101/g/loadwatch.htm http://www.xaprb.com/blog/2006/06/08/how-to-monitor-server-load-on-gnulinux/ Related articles Page: Install GIT on shared hosting . . . Read more

Mysql Database Backup & Import From the Command Line

Let’s say you’ve got root privileges, and you’re working along, and you want to quickly backup a database for USERNAME on the PM servers… cd /home/USERNAME/_back mysqldump  -uroot  DATABASENAME  >  DATABASENAME_YYYYMMDD_shortDescription.sql (Check the size of the backup file, always a good idea) ls  -lah  DATABASENAME_YYYYMMDD_shortDescription.sql (Change the owner and group . . . Read more