:: Install NicTool on Linux Debian

1 min read

:: What is NicTool
NicTool is a free DNS management suite that takes all the headaches out of managing DNS. It includes an attractive web interface for users, admins, and clients to access and update their DNS zone data as well as a rich API for provisioning systems to interact with. All zone data is stored in MySQL and is extracted by export scripts to the DNS server of choice (tinydns, BIND, PowerDNS). :: nictool.com
 
:: Installing Dependency
+ Installing Apache and mod_perl

# aptitude install apache2 apache2-dev libapache2-mod-perl2

+ Enable mod_pel on apache2

# a2enmod perl

+ Installing perl modules

# perl -MCPAN -e shell
install LWP
install RPC::XML
install SOAP::Lite
install DBI
install DBD::mysql
install Apache2::SOAP
install Digest::HMAC_SHA1

+ Installing DNS Server (BIND / TinyDNS)
 
:: Download Nictool
Register and download Nictool Package on //www.nictool.com/download/
 
:: Extracting Nictool

# tar -xf NicTool-2.08.tar

 
:: Installing NicTool Client
+ Compiling NicTool Client

# tar -xzf NicToolClient-2.08.tar.gz
# cd NicToolClient-2.08/
# perl Makefile.PL
# make install clean

+ Moving to our DocumentRoot

# mv ../NicToolClient-2.08 /var/www/NicToolClient

+ Configure nictoolclient.conf

# vi /var/www/NicToolClient/lib/nictoolclient.conf

change:

$NicToolClient::app_dir     = '/usr/local/www/NicToolClient';

to

$NicToolClient::app_dir     = '/var/www/NicToolClient';

 
:: Installing Nictool Server
+ Compiling

# tar -xzf NicToolServer-2.08.tar.gz
# cd NicToolServer-2.08/
# perl Makefile.PL
# make deps
# make install clean

+ Move to our DocumentRoot

# mv ../NicToolServer-2.08 /var/www/NicToolServer

+ Configure VirtualHost on Apache

# vi /etc/apache2/conf.d/nictool.conf
############
# NicToolServer
############

<IfDefine !MODPERL2>
   PerlFreshRestart On
</IfDefine>
PerlTaintCheck Off

Listen 8082

PerlRequire /var/www/NicToolServer/nictoolserver.conf
PerlRequire /var/www/NicToolClient/lib/nictoolclient.conf

<VirtualHost 127.0.0.1:8082>
    KeepAlive Off
    <Location />
        SetHandler perl-script
        PerlResponseHandler NicToolServer
    </Location>
    <Location /soap>
        SetHandler perl-script
        # ATTENTION: Comment out one or the other!
        #PerlResponseHandler Apache::SOAP
        PerlResponseHandler Apache2::SOAP
        # /ATTENTION
        PerlSetVar dispatch_to "/var/www/NicToolServer, NicToolServer::SOAP"
    </Location>
</VirtualHost>

###########
# NicToolClient
##########

Listen 8081

<VirtualHost *:8081>
   ServerName konsole.com
   Alias /images/ "/var/www/NicToolClient/htdocs/images/"
   DocumentRoot /var/www/NicToolClient/htdocs
   DirectoryIndex index.cgi

   <Files "*.cgi">
      SetHandler perl-script
      PerlResponseHandler ModPerl::Registry
      PerlOptions +ParseHeaders
      Options +ExecCGI
   </Files>

   <Directory "/var/www/NicToolClient/htdocs">
      AllowOverride None
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>

You can use different port number.

+ Setup MySQL Databases

# cd /var/www/NicToolServer/sql/
# perl create_tables.pl

+ Configure nictoolserver.conf

# vi /var/www/NicToolServer/nictoolserver.conf
#### change on these line, like:
    $NicToolServer::db_engine   = 'mysql';
    $NicToolServer::db_host     = 'localhost';
    $NicToolServer::db_port     = 3306;
    $NicToolServer::db          = 'nictool';
    $NicToolServer::db_user     = 'nictool';
    $NicToolServer::db_pass     = 'nictool';

+ Testing Installation

# cd /var/www/NicToolServer/
# vi t/test.cfg
# perl Makefile.PL

+ Restarting Apache2

# /etc/init.d/apache2 restart

 

:: Login on NicTool

 
:: Links
+ Google
+ NicToolServer
+ LinuxPower
+ Adityo

How to fix problem with the editor ‘vi’

:: git error with vi error: There was a problem with the editor 'vi'   :: how to fix the problem 0. check path...
sysadmin.id
10 sec read

Apache :: MP4 Streaming

:: How to Enable mp4 Streaming in Apache + Installing mod h624 streaming wget //h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7/ ./configure --with-apxs=`which apxs2` make...
sysadmin.id
18 sec read

Apache :: Flash / FLV Streaming

:: How to Configure Apache for FLV Streaming + Installing mod_flvx wget //people.apache.org/~pquerna/modules/mod_flvx.c which apxs /usr/bin/apxs /usr/bin/apxs -cia mod_flvx.c + setup mod_flvx in http.conf...
sysadmin.id
15 sec read