Popular just now

ad1

Installing Zotonic on Windows

Installing Zotonic CMS on Windows seems relatively easy.

Erlang : This is straight forward using the Erlang windows installer available from erlang.org

Postgresql : postgresql has had an excellent windows installer for quite a long time.

Zotonic : The bash scripts that do the installation on Linux need to be translated into windows bat files or WSH scripts.

@echo off
set erl="C:\Program Files\erl5.7.4\bin\erl.exe"
set erlc="C:\Program Files\erl5.7.4\bin\erlc.exe"
set ebin=ebin deps\mochiweb\ebin deps\erlang-oauth\ebin deps\webmachine\ebin

%erl% +P 10000000 -pa %ebin% -boot start_sasl -s zotonic


Update: Choosing to go with MinGW and using bash for windows instead of re-writing the shell scripts used to install Zotonic on windows. Since the MinGW/MSYS is an open source ongoing and updated project it should be part of a windows install until such time as a one-click installer is created. Install MinGW without choosing a compiler. Install MSYS and it will choose a compiler for you.

Run:
cd zotonic
make
Create a user according to the installation instructions. I recommend just using the PostgresqlAdmin GUI. It easier and you avoid some syntax errors if you are not familiar with Postgresql.
CREATE USER zotonic WITH PASSWORD 'yourdbpassword';
CREATE DATABASE zotonic WITH OWNER = zotonic ENCODING = 'UTF8';
GRANT ALL ON DATABASE zotonic TO zotonic;
Make some changes to the start script path:
#!c:\MSYS\bin\sh.exe
cd `dirname $0`
exec erl +P 10000000 +K true -pa $PWD/ebin $PWD/deps/*/ebin -boot start_sasl -s zotonic
Then use command:

c:\zotonic>sh start.sh

Some of the other reasons that I want to do this besides a growing interest in learning the Erlang programming language are:

Zotonic is built on an Erlang framework called web machine and the web server framework Mochiweb. While this is nice it would have been even better if it were built from scratch using Yaws and plain Erlang.

New Year 2010 Learn something new every Year

The programmers creed is to "learn a new programming language every year". My personal motto is to "learn a new progamming laguage via a CMS". This because I am a web programmer and like game programmers web programmers have a preferance for a particular development environment. We like to see things running on a web server with lots of users. In my recent contact with Erlang as my next language of choice I have spent a good deal of time using Yaws. While Yaws is a good learning environment for Erlang it does not have a CMS as part of its example package. There is also the problem of Erlang developers using mnesia for the most part and a few jumping on the CouchDB train. While these dbs are okay they are not RDMS and not really suitable for typical web work. So for the last 6 months I have been playing with Erlang while waiting for someone to with more knowledge about Erlang to build a simple and reliable CMS in Eelang using MySQL as a database back end.

This is where Zotonic comes into play. Today on Christmas eve I found Zotonic, a CMS built on Erlang that uses Postgresql as a database. Cool! Perfect! and needed. A nice present for those that want to learn a parallel, functional language like Erlang in a web development situation. I think that Zotonic will be a good change and nice addition to PHP and Drupal. I like the open source Apache 2.0 licensing also. It's just a gut feeling but I think that Zotonic may be the next big CMS to break through and might be the software that pushes Erlang into the limelight as a popular web programming language. Even if they do not I am still putting my chips on the table and giving them all of 2010.