User Tools

Site Tools


nekosetup

Setup a server with Neko

Neko is pretty unknown outside the Haxe community, but it's a good alternative to PHP, because it's a lot faster.

Sugoï uses the cacheModule feature of Neko wich avoids to reload all the stuff at every page call.

This tutorial is for Debian/Ubuntu servers.

Install Haxe PPA

add-apt-repository ppa:haxe/releases -y
apt-get update

Configure Apache2

apt-get install apache2 libapache2-mod-neko

After the install, don't forget to enable those mods :

a2enmod neko
a2enmod rewrite

Create a vhost in /etc/apache2/sites-available/MyWebSiteName.conf.

<VirtualHost *:80>
  ServerName MyWebSiteName
  DirectoryIndex index.n
  DocumentRoot /var/www/path/to/my/web/root/
</VirtualHost>
a2ensite MyWebSiteName

Update your local hosts file or your DNS records.

Create a database in MySQL

Update config.xml in your sugoi project with the correct database credentials :

 mysql://root:root@localhost/sugoi-demo

Alternative setups

There is a lot of different ways to use Neko for the web :