• Welcome to The Network People Support Forums. Please login or sign up.

CentOS 4.x + nictool quick rundown.

Started by shaun, September 01, 2005, 07:55:03 PM

Previous topic - Next topic

shaun

here's somthing i wrote up when i did a centos 4 (minimal install) and nictool install. i just found it, probably needs more added to it but it may help somebody... figured i'd post it before it ended up deleted.




yum install perl gcc patch zlib-devel httpd mod_ssl mod_perl expat-devel gcc-c++

wget http://dev.mysql.com/get/Downloads/MySQL-4.0/MySQL-server-4.0.24-0.i386.rpm/from/http://mysql.mirrors.hoobly.com/" target="_blank"> http://dev.mysql.com/get/Downloads/MySQL-4.0/MySQL-server-4. 0.24-0.i386.rpm/from/http://mysql.mirrors.hoobly.com/
wget http://dev.mysql.com/get/Downloads/MySQL-4.0/MySQL-client-4.0.24-0.i386.rpm/from/http://mysql.mirrors.hoobly.com/" target="_blank"> http://dev.mysql.com/get/Downloads/MySQL-4.0/MySQL-client-4. 0.24-0.i386.rpm/from/http://mysql.mirrors.hoobly.com/
wget http://dev.mysql.com/get/Downloads/MySQL-4.0/MySQL-devel-4.0.24-0.i386.rpm/from/http://mysql.mirrors.hoobly.com/" target="_blank"> http://dev.mysql.com/get/Downloads/MySQL-4.0/MySQL-devel-4.0 .24-0.i386.rpm/from/http://mysql.mirrors.hoobly.com/
wget http://dev.mysql.com/get/Downloads/MySQL-4.0/MySQL-shared-4.0.24-0.i386.rpm/from/http://mysql.mirrors.hoobly.com/" target="_blank"> http://dev.mysql.com/get/Downloads/MySQL-4.0/MySQL-shared-4. 0.24-0.i386.rpm/from/http://mysql.mirrors.hoobly.com/



perl -MCPAN -e shell

wget ftp://archive.progeny.com/CPAN/authors/id/G/GA/GAAS/URI-1.35.tar.gz" target="_blank"> ftp://archive.progeny.com/CPAN/authors/id/G/GA/GAAS/URI-1.35 .tar.gz
tar zxvf URI-1.35.tar.gz
cd URI-1.35
perl Makefile.PL
make
make install
cd ..


wget ftp://archive.progeny.com/CPAN/authors/id/G/GA/GAAS/HTML-Parser-3.45.tar.gz" target="_blank"> ftp://archive.progeny.com/CPAN/authors/id/G/GA/GAAS/HTML-Par ser-3.45.tar.gz
tar zxvf HTML-Parser-3.45.tar.gz
cd HTML-Parser-3.45
perl Makefile.PL
make
make install
cd ..


wget ftp://archive.progeny.com/CPAN/authors/id/G/GA/GAAS/libwww-perl-5.803.tar.gz" target="_blank"> ftp://archive.progeny.com/CPAN/authors/id/G/GA/GAAS/libwww-p erl-5.803.tar.gz
tar zxvf libwww-perl-5.803.tar.gz
cd libwww-perl-5.803
perl Makefile.PL
make
make install
cd ..

wget ftp://archive.progeny.com/CPAN/authors/id/R/RJ/RJRAY/RPC-XML-0.57.tar.gz" target="_blank"> ftp://archive.progeny.com/CPAN/authors/id/R/RJ/RJRAY/RPC-XML -0.57.tar.gz
tar zxvf RPC-XML-0.57.tar.gz
cd RPC-XML-0.57
perl Makefile.PL
make
make install
cd ..

wget ftp://archive.progeny.com/CPAN/authors/id/B/BY/BYRNE/SOAP/SOAP-Lite-0.60a.tar.gz" target="_blank"> ftp://archive.progeny.com/CPAN/authors/id/B/BY/BYRNE/SOAP/SO AP-Lite-0.60a.tar.gz
tar zxvf SOAP-Lite-0.60a.tar.gz
cd SOAP-Lite-0.60
wget http://www.nictool.com/docs/server/HTTP.pm.patch" target="_blank">http://www.nictool.com/docs/server/HTTP.pm.patch
cd lib/SOAP/Transport/
patch -p0 < ../../../HTTP.pm.patch
cd ../../../
perl Makefile.PL
make
make install
cd ..

wget ftp://archive.progeny.com/CPAN/authors/id/T/TI/TIMB/DBI-1.48.tar.gz" target="_blank"> ftp://archive.progeny.com/CPAN/authors/id/T/TI/TIMB/DBI-1.48 .tar.gz
tar zxvf DBI-1.48.tar.gz
cd DBI-1.48
perl Makefile.PL
make
make install
cd ..

wget ftp://archive.progeny.com/CPAN/authors/id/R/RU/RUDY/DBD-mysql-2.9006.tar.gz" target="_blank"> ftp://archive.progeny.com/CPAN/authors/id/R/RU/RUDY/DBD-mysq l-2.9006.tar.gz
tar zxvf DBD-mysql-2.9006.tar.gz
cd DBD-mysql-2.9006
perl Makefile.PL
make
make install
cd ..


wget ftp://archive.progeny.com/CPAN/authors/id/A/AB/ABH/Apache-DBI-0.94.tar.gz" target="_blank"> ftp://archive.progeny.com/CPAN/authors/id/A/AB/ABH/Apache-DB I-0.94.tar.gz
tar zxvf Apache-DBI-0.94.tar.gz
cd Apache-DBI-0.94
wget http://www.nictool.com/docs/server/DBI.pm.patch" target="_blank">http://www.nictool.com/docs/server/DBI.pm.patch
patch -p0 < DBI.pm.patch
perl Makefile.PL
make
make install
cd ..


wget ftp://archive.progeny.com/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz" target="_blank"> ftp://archive.progeny.com/CPAN/authors/id/M/MS/MSERGEANT/XML -Parser-2.34.tar.gz
tar zxvf XML-Parser-2.34.tar.gz
cd XML-Parser-2.34
perl Makefile.PL
make
make install


wget http://www.nictool.com/download/NicToolClient-2.02.tar.gz" target="_blank">http://www.nictool.com/download/NicToolClient-2.02.tar.gz
tar zxvf NicToolClient-2.02.tar.gz
cd NicToolClient-2.02
perl Makefile.PL
make install clean
cd ..
mv NicToolClient-2.02 /usr/local/
ln -s /usr/local/NicToolClient-2.02 /usr/local/NicToolClient

ln -s /usr/local /usr/local/www

cat >> /etc/httpd/conf/httpd.conf << EOF
<VirtualHost *:80>
   # force a https connection
   ServerName dns.yourdomain.com
   Redirect / https://dns.yourdomain.com/" target="_blank">https://dns.yourdomain.com/
</VirtualHost>

<VirtualHost *:443>
   ServerName dns.yourdomain.com
   Alias /images/ "/usr/local/www/NicToolClient/htdocs/images/"
   DocumentRoot /usr/local/www/NicToolClient/htdocs
   DirectoryIndex index.cgi
   SSLEngine on
   SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
   SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key

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

   <Directory "/usr/local/www/NicToolClient/htdocs">
       AllowOverride None
       Order allow,deny
       Allow from all
   </Directory>
</VirtualHost>
EOF

*Note* edit /etc/httpd/conf.d/ssl.conf and remove the <virtualhost _default entry at the bottom





wget http://www.nictool.com/download/NicToolServer-2.01.tar.gz" target="_blank">http://www.nictool.com/download/NicToolServer-2.01.tar.gz
tar zxvf NicToolServer-2.01.tar.gz
cd NicToolServer-2.01
perl Makefile.PL
make install clean
cd ..
mv NicToolServer-2.01 /usr/local
ln -s /usr/local/NicToolServer-2.01 /usr/local/NicToolServer

cat >> /etc/httpd/conf/httpd.conf << EOF
<IfDefine !MODPERL2>
  PerlFreshRestart On
</IfDefine>
PerlTaintCheck Off
   
Listen 8082

PerlRequire /usr/local/www/NicToolServer/nictoolserver.conf
PerlRequire /usr/local/www/NicToolClient/lib/nictoolclient.conf

<VirtualHost 127.0.0.1:8082>
   KeepAlive Off
   <Location />
       SetHandler perl-script
       PerlResponseHandler NicToolServer
   </Location>
   <Location /soap>
       SetHandler perl-script
       PerlResponseHandler Apache::SOAP
       PerlSetVar dispatch_to "/usr/local/www/NicToolServer, NicToolServer::SOAP"
   </Location>
</VirtualHost>
EOF

cd /usr/local/NicToolServer/sql
service mysqld start
./create_tables

vi /usr/local/www/NicToolServer/nictoolserver.conf