[NANOWEB DOCUMENTATION]

NANOWEB, the aEGiS PHP web server

Starting nanoweb server

You should use nanoctl for starting, stopping or restarting the nanoweb server; as it handles the pid files and gives the default configuration file to the server.

   nanoctl start

will bring up the server

starting of nanoweb at boottime

The nanoctl util was designed to be easily installed for use by the common linux bootup scripts (sysV init rcNdirs). All you need to do is to create a symlink from nanoctl into the init-directory:

   ln -s /usr/sbin/nanoctl /etc/rc2.d/S80nanoweb

this will bring up nanoweb automatically when your computer starts up into runlevel 2.

without nanoctl

Its highly recommended to use nanoctl for starting or terminating the server, you may however just run nanoweb.php as any other ordinary program, which is useful for debugging (set LogToConsole accordingly).

   php nanoweb.php /etc/nanoweb/nanoweb.conf &
Giving the name of the php binary on the prompt is not required in most cases. The first argument must be the path to the server config file.

Starting nanoweb this way is useful if you'd like to give it additonal configuration options overriding the ones found in the default config files.
Please use nanoweb.php --help to see how this can be done.


NANOWEB, the aEGiS PHP web server

Index