All posts in Server
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
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
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
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
The purposes of this how-to is to give detailed instruction on how to setup a client code project so that it can be used with source control via BitBucket. The same procedure can be used whether the codebase already exists or not. By the end of this how-to you will have . . . Read more
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
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
The first tool to reach for when analyzing and/or diagnosing a server is likely: top Top will give you a real-time, interactive view of the top processes consuming memory, cpu, etc… Which is probably why it’s called “top”. There’s a lot of rather cryptic keystrokes that you can use while . . . Read more
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