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
    Redirect /

<VirtualHost NNN.NNN.NNN.NNN:443>
    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

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

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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.