Install OS: Difference between revisions

From MyLVS
Jump to navigation Jump to search
Line 17: Line 17:
=Packages=
=Packages=
==MySQL==
==MySQL==
  apt-get install mysql-server-5.5
  root@mylvs01:/# '''apt-get install mysql-server-5.5'''
==Perl Core==
==Perl Core==
core modules
core modules
  apt-get install libnet-snmp-perl libxml-simple-perl libmail-sendmail-perl
  root@mylvs01:/# '''apt-get install libnet-snmp-perl libxml-simple-perl libmail-sendmail-perl'''


  libnet-whois-raw-perl
  libnet-whois-raw-perl


for monitoring purposes:
for monitoring purposes:
  apt-get install nagios-plugins-standard nagios-nrpe-plugin
  root@mylvs01:/# '''apt-get install nagios-plugins-standard nagios-nrpe-plugin'''


other
other
  apt-get install libdatetime-perl
root@mylvs01:/# '''apt-get install libdatetime-perl'''


==Apache Perl CGI==
==Apache Perl CGI==
  apt-get install libapache2-mod-fcgid libcgi-fast-perl  
  root@mylvs01:/# '''apt-get install libapache2-mod-fcgid libcgi-fast-perl'''
  apt-get install libcgi-pm-perl libcgi-session-perl  
  root@mylvs01:/# '''apt-get install libcgi-pm-perl libcgi-session-perl'''
  apt-get install libfcgi-perl libfcgi0ldbl
  root@mylvs01:/# '''apt-get install libfcgi-perl libfcgi0ldbl'''




===Enable CGI===
===Enable CGI===
  a2enmod cgi
  root@mylvs01:/# '''a2enmod cgi'''


===Apache additional===
===Apache additional===
  apt-get install libnet-snmp-perl libxml-simple-perl
  root@mylvs01:/# '''apt-get install libnet-snmp-perl libxml-simple-perl'''
 
 


=SUDO=
=SUDO=

Revision as of 17:59, 3 September 2015

Introduction

This page with all descriptions are tested with Debian and Ubuntu Linux.

Install

Sample for Debian 8:

  • Default installation
    • Choose package Web server
    • Choose package SSh server

Packages

MySQL

root@mylvs01:/# apt-get install mysql-server-5.5

Perl Core

core modules

root@mylvs01:/# apt-get install libnet-snmp-perl libxml-simple-perl libmail-sendmail-perl
libnet-whois-raw-perl

for monitoring purposes:

root@mylvs01:/# apt-get install nagios-plugins-standard nagios-nrpe-plugin

other

root@mylvs01:/# apt-get install libdatetime-perl

Apache Perl CGI

root@mylvs01:/# apt-get install libapache2-mod-fcgid libcgi-fast-perl 
root@mylvs01:/# apt-get install libcgi-pm-perl libcgi-session-perl 
root@mylvs01:/# apt-get install libfcgi-perl libfcgi0ldbl


Enable CGI

root@mylvs01:/# a2enmod cgi

Apache additional

root@mylvs01:/# apt-get install libnet-snmp-perl libxml-simple-perl

SUDO

Sudo is required to run commands from apache

apt-get install sudo
  • visudo -f /etc/sudoers
www-data ALL=NOPASSWD: /sbin/ipvsadm
www-data ALL=NOPASSWD: /usr/bin/nmap
www-data ALL=NOPASSWD: /var/wwwl/mylvs/repl.sh
www-data ALL=NOPASSWD: /usr/local/nagios/libexec/check_nrpe
www-data ALL=NOPASSWD: /var/www/mylvs/scripts/mkbackup.sh
www-data ALL=NOPASSWD: /var/www/mylvs/scripts/mkbackupcomment.sh
www-data ALL=NOPASSWD: /usr/bin/mysqldump
www-data ALL=NOPASSWD: /usr/bin/mysql
www-data ALL=NOPASSWD: /bin/echo
www-data ALL=NOPASSWD: /var/www/mylvs/scripts/mkbackup.sh
www-data ALL=NOPASSWD: /var/www/mylvs/scripts/mkrestore.sh
www-data ALL=NOPASSWD: /var/www/mylvs/scripts/reboot.sh


Note: The above commands represents all possible myLVS functions even if the scripts are not setup at this time.

Where to go next