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

Skip to content

Install NicTool on CentOS

Matt Simerson edited this page May 12, 2015 · 20 revisions

Update CentOS

See also CentOS-6 and CentOS-7

yum update

Install Dependencies

On CentOS, especially a minimal install, it's helpful to pre-install a few dependencies.

yum -y install mysql mysql-server mysql-devel
chkconfig mysqld on
service mysqld start

yum -y install httpd httpd-devel mod_perl mod_perl-devel mod_ssl 
chkconfig httpd on
service httpd start

yum -y install curl gcc make gettext gettext-devel rsync libxml2 libxml2-devel
yum -y install perl-Net-IP perl-XML-Parser perl-XML-LibXML perl-Digest-HMAC

Install NicTool Server & Client

mkdir /usr/local/nictool && cd /usr/local/nictool
tar -xzf ~/NicTool.tar.gz
tar -xzf server/NicToolServer-2.??.tar.gz
tar -xzf client/NicToolClient-2.??.tar.gz
mv server foo; mv NicToolServer-2.?? server
mv client bar; mv NicToolClient-2.?? client
rm -rf foo bar
cd client; perl Makefile.PL; make; sudo make install clean
cd ../server; perl Makefile.PL; make; sudo make install clean

Install NicTool perl dependencies

yum -y install perl-CPAN perl-Module-Build
cd /usr/local/nictool/server; perl bin/nt_install_deps.pl
cd /usr/local/nictool/client; perl bin/install_deps.pl

Install NicTool database

cd /usr/local/nictool/server/sql
perl create_tables.pl

configure nictoolserver.conf

Make sure the database settings are the same as what you defined in create_tables.pl

cd /usr/local/nictool/
cp client/lib/nictoolclient.conf.dist client/lib/nictoolclient.conf
cp server/lib/nictoolserver.conf.dist server/lib/nictoolserver.conf
vim server/lib/nictoolserver.conf

configure apache

Install a self-signed SSL certificate

mkdir /etc/ssl/certs /etc/ssl/private
chmod o-r /etc/ssl/private
openssl req -x509 -nodes -days 2190 -newkey rsa:2048 -keyout /etc/ssl/private/server.key -out /etc/ssl/certs/server.crt

Install nictool Apache vhost declarations

wget http://www.nictool.com/download/nictool.conf
vim nictool.conf
mv nictool.conf /etc/httpd/conf.d/z_nictool.conf 

restart apache

service httpd restart

Clone this wiki locally