Pick our brains...

All posts in Developer

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

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

Handy Git Commands

Import an Existing Repo, Hosted on a Remote, eg: BitBucket or GitHub: cd /your/local/directory git clone git@github.com:reponame/domainname.git Create a Brand New (Local) Repo, & Add a (Bare) Remote: cd /your/local/directory git init git add . git commit -m “Begin! Import all existing web files” Then we add the remote (bare) . . . 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

How to Backup a Codebase, Server Side, Well & Good

Make a Copy of an Entire Codebase: Very useful for preparing for a major version update. Let’s say you’ve got a codebase, living at: /home/USERNAME/public_html/   You can make a copy of the whole gosh dern thing, while watching the files stream before your eyes with: cp -Rv  /home/USERNAME/public_html/ /home/USERNAME/public_html_YYYYMMDD_bak/ . . . Read more

Migration of WordPress from Pagodabox to a Traditional Hosting Environment

Skip to end of metadata Created by Benjamin Turner, last modified on Dec 04, 2013 Go to start of metadata This guide focuses on getting the data out of Pagodabox. General Step-by-step guide for Pagodabox migration: Download the Site from Pagodabox (covered in this guide) Setup Server that will be the . . . Read more

Create a Blank WordPress Sandbox

Creation of a new, blank Wordpess sandbox is useful for wireframing or trying out new themes and/or plugins. Because we are not migrating any content from an existing site, this process is easy, and can be done with GUI tools. Overview of Steps Create a space on the server where . . . Read more

Mysql Optimizations & Server Database Tuning

A few tasty tidbits, to jog the memory about database & server optimizations… To be expanded.  Share your thoughts and suggestions! Example Server: Memory Available: 1,751,724k total Handy Queries: mysql> SHOW VARIABLES LIKE ‘%cache%’; mysql> SHOW STATUS LIKE ‘Qcache%’; My.cnf Tweaks: ; QUERY CACHE… query_cache_size = 500M query_cache_type = 1 . . . Read more

Developer Foundations (Training)

We need to write/publish a set of sequential “Developer Foundations” articles that will teach new developers (or people looking to get into development) how we wish to develop the “Peaceful Media” way. For now this page is simple a discussion of what should be included in this set. Please feel . . . Read more