Update of My Blog 3

Status

I updated some days ago my blog. I migrated to Octopress, an awesome tool that allows me to write my Blog inside of markdown. My main problem was that Wordpress had become to fat, at some point I started to drop off everything from the server that I didn’t need. But still Apache went into “out of memory” problems. Connections was failing. Duo an outdated kernel version (which i can’t control) there is no OOM and at some point I wasn’t able to login to the server. The only solution was to reboot.

To prevent problem like this i moved to Nginx, but Wordpress don’t work to well with this. Apache owns a nice module for PHP, what is missing for the Nginx. The solution here is to run with a fastcgi that will hosted on the localhost. Nginx just forwarding the requests to the fastcgi socket.

After this my web service took lesser memory but the fastcgi had now everything in use. I could save some memory (around 100Mb). Beside that Wordpress needs a MySQL Databases. What doesn’t makes me to happy.

Original Django was the Framework of my choice, but duo missing time and skills I wasn’t able to make a blog there.

Installation

For the Server it’s quite simple, I’m using a the normal webserver.

The “client” where I write and generate the actucaly entrys. I followed the documection from octopress for the setup here.

Note: There is a bug inside of Gentoo, what will cause the rbenv to start correctly, this will be fix by running: unset RUBYOPT.

rake generate
/home/akendo/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- auto_gem (LoadError)
from /home/akendo/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'

Migration

For my blog

Work flow

First

Then I write my entry, to check that the md is looking fine I’m checking this on with this online convert

Deploy

Summery

The Webserver now only needs 50 Mb of Memeroy, I don’t have to use PHP or MySQL and I do save 900 Mb of Memory. Awesome! I’m not very use to blogging like this, but it make me happy.

so far 4k3nd0