Thursday, November 8, 2012

HOWTO : Upgrade to Hiawatha 8.6 on Ubuntu Server 12.04 LTS

Upgrade to Hiawatha 8.6

If you are upgrading from previous version of Hiawatha to version 8.6, you just follow the following step only.

Download the source code of Hiawatha and compile. Then install the package as normal.

sudo apt-get install php5-fpm

sudo php-fcgi -k -c /etc/hiawatha/php-fcgi.conf

Disable the php-fcgi :

sudo update-rc.d -f php-fcgi remove

sudo nano /etc/hiawatha/hiawatha.conf

Go to the following section and change the "ConnectTo = 127.0.0.1:2005" to "ConnectTo = 127.0.0.1:9000"

The entries at COMMON GATEWAY INTERFACE (CGI) SETTINGS should be looking like this.

CGIhandler = /usr/bin/perl:pl
CGIhandler = /usr/bin/php5-cgi:php
CGIhandler = /usr/bin/python:py
CGIhandler = /usr/bin/ruby:rb
CGIhandler = /usr/bin/ssi-cgi:shtml
CGIextension = cgi


FastCGIserver {
   FastCGIid = PHP5
   ConnectTo = 127.0.0.1:9000
   Extension = php, php5
   SessionTimeout = 30
}


Set the php-fpm.conf file :

Append the following to the php-fpm.conf.

sudo nano /etc/php5/fpm/php-fpm.conf

[www]
user = www-data
group = www-data
listen = 127.0.0.1:9000
pm = static
pm.max_children = 100
chroot = /var/www/
chdir =/

sudo /etc/init.d/hiawatha restart

That's all! See you.