Open Source Phusion Passenger Module for Nginx on CentOS 6
Phusion Passenger is a web server and application server for your web apps which built upon Ruby or NodeJS. In this documentation I will show how to install open source version of Phusion Passenger on CentOS 6.6 using Ruby gem installation.
Check your Ruby location
which ruby
/usr/local/rvm/rubies/ruby-2.1.5/bin/ruby
In this tutorial I assume your Ruby is installed using RVM Install passenger using gem command
gem install passenger -V
Install passenger module for nginx
MongoDB on CentOS 6
MongoDB is the only database that harnesses the innovations of NoSQL (flexibility, scalability, performance) and builds on the foundation of relational databases (expressive query language, secondary indexes, strong consistency). In this documentation, I will show how to install MongoDB on CentOS 6.
Add MongoDB repository to yum
sudo vi /etc/yum.repos.d/mongodb.repo
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1
Install MongoDB
sudo yum install mongo-10gen mongo-10gen-server --exclude mongodb-org,mongodb-org-server
Add this to /etc/yum.conf to prevent MongoDB from being upgraded
Memcached on CentOS 6
Memcached is free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering. In this documentation I will show how to install memcached using yum package manager with Atomicorp repository.
Install the latest Atomicorp repository from http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/
Start Your Own Documentation Blog
I am trying to write again after some month was absent from touching any electronic notes (blogs). Actually I wanted to do it from a long time ago but I was afraid don’t have any material with qualities to be written. In reality, I realized that I have been encountering events that I must write about. After so long trying to make up my mind and gather my courage, I finally be able to put some ideas into my writing, starting with this re-introduction.
Creating a New Theme from Example
Introduction
This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I’ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won’t cover using CSS to style your theme.
We’ll start with creating a new site with a very basic template. Then we’ll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.
Upgrade Ghost
I have run Ghost for quite some time now and I have been through two upgrade process so I think it will be a good idea to save a procedure for easy upgrading. I found the instruction here.
###Manually upgrade Ghost
I usually use manual upgrade method because I don’t inspect the automatic scripts yet if it is compatible with my installation.
# cd /var/www/html/ghost
# mkdir temp
# cd temp/
# curl -L -O https://ghost.org/zip/ghost-latest.zip
# unzip ghost-latest.zip
# cd ..
# cp temp/*.md temp/*.js temp/*.json .
# rm -R core
# cp -R temp/core .
# cp -R temp/content/themes/casper content/themes
# npm install --production
# rm -R temp
# su ghost -c /var/www/html/ghost/starter.sh -s /bin/sh
###Reference http://www.howtoinstallghost.com/how-to-update-ghost/