ANJY - Dynamic Web Server

Introduction

Let's explain why do we need ANJY server.

How standard servers does work?

  1. Your request goes to apache / nginx

  2. If it's *.php file – starting php-interpreter

  3. If you are using database in web-app then do:

    1. Connect to DB

    2. Perform Query

    3. Return result to PHP

  4. Format data in VIEW template

  5. Return response to your browser

Why standard server is so slow?

Apache starts PHP each time when you press F5 or navigate to some page at your website. PHP have to read and interpret your scripts each time. PHP connecting to DB each time.

How to make it faster?

Use server with permanent DB connection. Don't use interpreters. Use logic in Front VIEW template (JavaScript)

Installation

Requirements

ANJY already has connector for DB (MySQL, MSSQL, Postgre). So you don't need a 3rd part for using your DB data. You can install / use it in Windows (x64) and Linux (x64) platforms

Installing

Windows installation

Download (win x64)

  1. Unzip archive to directory that will be a server

  2. Run install_windows.cmd with administrative rights

  3. Now you can start|stop|restart service via services control panel

Linux installation

Download (linux x64)

  1. Unzip archive. Archive has folders that have structure like linux file system

  2. Put files into folders on your server as is. For example: put /etc/init/anjy.conf at same path on your server

  3. Change file permissions to 755 for executable file /usr/sbin/anjy and /etc/init.d/anjy

  4. Enable daemon by using command systemctl enable anjy.service

  5. Now you can start|stop|restart service via service command