ANJY - Dynamic Web Server
Introduction
Let's explain why do we need ANJY server.
How do standard servers work?
Your request goes to apache / nginx
If it's *.php file – starting php-interpreter
If you are using database in web-app then do:
Connect to DB
Perform Query
Return result to PHP
Format data in VIEW template
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 on your website. PHP has to read and interpret your scripts each time. PHP connecting to DB each time.
How to make it faster?
Use the server with a permanent DB connection. Don't use interpreters. Use logic in Front VIEW template (JavaScript)
Installation
Requirements
ANJY already has a 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
Unzip archive to directory that will be a server
Run
install_windows.cmdwith administrative rightsNow you can start|stop|restart service via services control panel
Linux installation
Unzip archive. Archive has folders that have structure like linux file system
Put files into folders on your server as is. For example: put
/etc/init/anjy.confat the same path on your serverChange file permissions to
755for executable file/usr/sbin/anjyand/etc/init.d/anjyEnable daemon by using command
systemctl enable anjy.serviceNow you can start|stop|restart service via service command