Zonemaster-GUI
view release on metacpan or search on metacpan
docs/installation.md view on Meta::CPAN
http://localhost:50080/
Use the Zonemaster engine from the command line
docker run -t -i afniclabs/zonemaster-gui bash
## Pre-Requisites
* Zonemaster-engine should be installed before. Follow the instructions
[here](https://github.com/dotse/zonemaster-engine/blob/master/docs/installation.md)
* Zonemaster-backend should be installed before. Follow the instructions
[here](https://github.com/dotse/zonemaster-backend/blob/master/docs/installation.md)
##Â Preambule
Since it is a web application, the Zonemaster Web GUI is a bit more complicated to install than, for example, the test engine. The exact details also depend on the operating system and environment in which it is installed, so it's not really possible...
Basically, the GUI has two major parts. One part is the Perl modules that hold most of the application logic, and the other part is the HTML template files, CSS files, Javascript files and so on that the application logic needs. The Perl module part ...
So, in essence, the installation consists of the following steps:
1) Fetch the source code to the Web GUI.
2) Install all the various prerequisite software. This includes the Zonemaster Web Backend, which in turn requires the Zonemaster test engine. The backend also needs access to a database server.
3) Install the Perl module part of the GUI using the usual `perl Makefile.PL && make && make test && make install` sequence.
4) Copy the entire subdirectory `zm_app` from the source code to somewhere suitable. This may be, for example, `/usr/local/webapps/` or `/usr/share/doc/`.
5) Start the server. How to do this can also vary a lot, depending on what else is running on the same server, how much traffic you're expecting to get and such. In any case, you need a server that understands the `PSGI` interface, and it should be p...
## <a name="Debian"></a> Example installation for Ubuntu Server 14.04LTS
1) Install added prerequisite packages:
sudo apt-get install libdancer-perl libtext-markdown-perl libtemplate-perl libjson-any-perl
2) Get the source code.
git clone https://github.com/dotse/zonemaster-gui.git
3) Change to the source code directory.
cd zonemaster-gui
4) Install the Perl modules.
perl Makefile.PL
make
make test
sudo make install
5) Create a directory for the webapp parts, and copy them there.
sudo mkdir -p /usr/share/doc/zonemaster
sudo cp -a zm_app /usr/share/doc/zonemaster
6) Start the server:
sudo starman --listen=:80 /usr/share/doc/zonemaster/zm_app/bin/app.pl
The Doc directory in the source code also has an example Upstart file for the Web GUI starman server.
## <a name="FreeBSD"></a> Example installation for FreeBSD 10 & 10.1
1) Become root
su -
2) Install additional prerequisite packages.
pkg install p5-Dancer p5-Text-Markdown p5-Template-Toolkit
3) Get the source code.
git clone https://github.com/dotse/zonemaster-gui.git
4) Change to the source code directory.
cd zonemaster-gui
5) Install the Perl modules.
perl Makefile.PL
make
make test
make install
6) Create a directory for the webapp parts, and copy them there.
mkdir -p /usr/local/share/zonemaster
cp -a zm_app /usr/local/share/zonemaster
7) Start the server:
starman --listen=:80 --daemonize /usr/local/share/zonemaster/zm_app/bin/app.pl
## <a name="CentOS"></a> Example installation for CentOS 7.1
1) Install additional prerequisite packages.
sudo cpan -i Dancer Text::Markdown Template JSON
2) Get the source code.
git clone https://github.com/dotse/zonemaster-gui.git
3) Change to the source code directory.
cd zonemaster-gui
4) Install the Perl modules.
perl Makefile.PL
make
make test
make install
5) Create a directory for the webapp parts, and copy them there.
mkdir -p /usr/local/share/zonemaster
cp -a zm_app /usr/local/share/zonemaster
6) Start the server:
starman --listen=:80 --daemonize /usr/local/share/zonemaster/zm_app/bin/app.pl
( run in 0.489 second using v1.01-cache-2.11-cpan-e93a5daba3e )