ASTERISK_SER_OPENSER_LAMP_HA_HP_CISCO

HA-HP-LINUX_MS_FREESWITCH_TRIXSWITCH_ASTERCRM_ASTERBILLING

Installing Nictool On CentOS 5

What is Nictool?
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

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

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

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


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.



8. Extract package NictoolServer
[root@server ~]# tar -zxvf NicToolServer-2.07.tar.gz

[root@server ~]# cd NicToolServer-2.07



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 url: 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

<IfDefine !MODPERL2>
PerlFreshRestart On
</IfDefine>
PerlTaintCheck Off
Listen 8082
PerlRequire /var/www/html/NicToolServer/nictoolserver.conf
PerlRequire /var/www/html/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/html/NicToolServer, NicToolServer::SOAP"
</Location>
</VirtualHost>


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

Striping Across Four Storage Nodes With GlusterFS On CentOS 5.4Distributed Storage Across Four Storage Nodes With GlusterFS On CentOS 5.4

Comments

Anonymous Tuesday, September 28, 2010 9:43:59 AM

Аноним writes: The home loans are essential for guys, which want to ground their own business. By the way, that's very easy to get a collateral loan.

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies

February 2012
M T W T F S S
January 2012March 2012
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29