Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Install NicToolClient

Infern1 edited this page Dec 10, 2014 · 8 revisions

NOTE: more specific instructions are available for FreeBSD 10 and CentOS.

Download the latest release

A free download from the TNPI store. Log in for access to the latest releases. NicTool Client and Server are in the NicTool-2.NN.tar.gz bundle.

Expand the archive

tar -xzf NicToolClient-2.??.tar.gz

Install the perl modules:

cd NicToolClient-2.??
perl Makefile.PL
make install clean

Move the distribution to DocumentRoot:

mv NicToolClient-2.?? /usr/local/nictool/client

Configure Apache

This will vary dependent on your OS and Apache version. A typical configuration is presented. Make these additions to httpd.conf:

PerlRequire /usr/local/nictool/client/lib/nictoolclient.conf

<VirtualHost *:80>
    # force a https connection
    ServerName dns.example.net
    Redirect / https://dns.example.net/
</VirtualHost>

<VirtualHost NNN.NNN.NNN.NNN:443>
    ServerName dns.example.net
    Alias /images/ "/usr/local/nictool/client/htdocs/images/"
    DocumentRoot /usr/local/nictool/client/htdocs
    DirectoryIndex index.cgi
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/server.crt
    SSLCertificateKeyFile /etc/ssl/private/server.key

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

    <Directory "/usr/local/nictool/client/htdocs">
        AllowOverride None
        #Order allow,deny
        #Allow from all
        Require all granted
    </Directory>
</VirtualHost>

Configure nictoolclient.conf

cd /usr/local/nictool/client
cp lib/nictoolclient.conf.dist lib/nictoolclient.conf
$EDITOR lib/nictoolclient.conf

Restart Apache

service httpd restart || service apache24 restart

Clone this wiki locally