Nictool is a free software for managing DNS, but for download we have to register at www.nictool.com; Nictool can export from djbdns, BIND, PowerDNS. All data is stored in MySQL and can be managed over the web using a browser. This tutorial shows how to install Nictool on CentOS 5.2.
1. Download nictool
2. Extract nictoolclient
[root@server ~]# tar -zxvf NicToolClient-2.07.tar.gz
[root@server ~]# cd NicToolClient-2.07
3. Install perl modules
[root@server NicToolClient-2.07]# perl Makefile.PL
[root@server NicToolClient-2.07]# make install clean
4. Moving directory to web folder
[root@server NicToolClient-2.07]# cd ..
[root@server ~]# mv NicToolClient-2.0.7.tar.gz /var/www/html/NicToolClient
5. Edit file httpd.conf like this
[root@server ~]# nano /etc/httpd/conf/httpd.conf
ServerName server.com
Alias /images/ "/var/www/html/NicToolClient/htdocs/images/"
DocumentRoot /var/www/html/NicToolClient/htdocs
DirectoryIndex index.cgi
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
AllowOverride None
Order allow,deny
Allow from all
6. And we can edit the file nictoolclient.conf
[root@server ~]# nano /var/www/html/NicToolClient/lib/nictoolclient.conf
Change this line:
$NicToolClient::app_dir = '/usr/local/www/NicToolClient';
to:
$NicToolClient::app_dir = '/var/www/html/NicToolClient';
7. Restart service apache
[root@server ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Now we can try to install NictoolServer.
9. Install Perl Modules
[root@server NicToolServer-2.07]# perl Makefile.PL
If we get messages like this:
'Warning: prerequisite Apache2::SOAP 0 not found'
please download Apache2::SOAP in www.cpan.org
You can download the module from this rl: http://search.cpan.org/CPAN/authors/id/R/RK/RKOBES/Apache2-SOAP-0.73.tar.gz
[root@server NicToolServer]# tar zxvf Apache2-SOAP-0.73.tar.gz
[root@server NicToolServer]# cd Apache2-SOAP-0.73
[root@server Apache2-SOAP-0.73]# perl Makefile.PL
[root@server Apache2-SOAP-0.73]# make
[root@server Apache2-SOAP-0.73]# make test
[root@server Apache2-SOAP-0.73]# make install
10. If your Apache2::SOAP has been installed you can continue to install perl modules
[root@server NicToolServer-2.07]# make deps
[root@server NicToolServer-2.07]# make install clean
11. Moving folder to web folder
[root@server ~]# mv NicToolServer-2.07 /var/www/html/NicToolServer
12. Add this line in httpd.conf file
[root@server ~]# nano /etc/httpd/conf/httpd.conf
PerlFreshRestart On
PerlTaintCheck Off
Listen 8082
PerlRequire /var/www/html/NicToolServer/nictoolserver.conf
PerlRequire /var/www/html/NicToolClient/lib/nictoolclient.conf
KeepAlive Off
SetHandler perl-script
PerlResponseHandler NicToolServer
SetHandler perl-script
# ATTENTION: Comment out one or the other!
#PerlResponseHandler Apache::SOAP
PerlResponseHandler Apache2::SOAP
# /ATTENTION
PerlSetVar dispatch_to "/var/www/html/NicToolServer, NicToolServer::SOAP"
13. Restart service apache and run service mysql
[root@server ~]# service httpd restart
[root@server ~]# service mysqld start
14. Create database
[root@server ~]# cd /var/www/html/NicToolServer/sql/
[root@server sql]# perl create_tables.pl
#########################################################################
NicTool database connection settings
#########################################################################
Please enter database hostname [localhost]:
Please enter database root password:
Please enter a name for the NicTool database [nictool]:
Please enter a username for NicTool's database user [nictool]:
#########################################################################
NicTool admin user (root) settings
#########################################################################
Please enter a new root password for NicTool:
Please enter a verify password:
Please enter an email address for the root user of NicTool: server@mail.com
Beginning table creation.
If any of the information you entered is incorrect, press Control-C now!
-------------------------
DATABASE DSN: mysql://nictool:******@localhost/nictool
host: localhost
db : nictool
user: nictool
*** the DSN info must match the settings in nictoolserver.conf! ***
NicTool admin user (root) settings
#########################################################################
Please enter a new root password for NicTool:
Please enter a verify password:
Please enter an email address for the root user of NicTool: server@mail.com
Beginning table creation.
If any of the information you entered is incorrect, press Control-C now!
-------------------------
DATABASE DSN: mysql://nictool:******@localhost/nictool
host: localhost
db : nictool
user: nictool
*** the DSN info must match the settings in nictoolserver.conf! ***
NICTOOL LOGIN: http://localhost/index.cgi
user : root
pass : *******
email: server@mail.com
-------------------------
Otherwise, hit return to continue...
importing contents of nt_group.sql .. done.
importing contents of nt_summary.sql .. done.
importing contents of nt_nameserver.sql .. done.
importing contents of nt_zone.sql .. done.
importing contents of nt_perm.sql .. done.
importing contents of nt_user.sql .. done.
importing contents of temp.sql .. done.
15. And then edit file nictoolserver.conf and fill in the correct MySQL settings
[root@server sql]# cd ..
[root@server NicToolServer]# nano nictoolserver.conf
$NicToolServer::db_engine = 'mysql';
$NicToolServer::db_host = 'localhost';
$NicToolServer::db_port = 3306;
$NicToolServer::db = 'nictool';
$NicToolServer::db_user = 'nictool';
$NicToolServer::db_pass = '';
16. Restart apache
[root@server NicToolServer]# service httpd restart
Referal URL: http://howtoforge.com/installing-nictool-on-centos-5.2
No comments:
Post a Comment