Tag Archives: apache

Home »  Tag: apache

1. Install a vanilla Centos. 2. install Nagios Core as following: yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp cd /tmp wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.16.tar.gz wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.4.3.tar.gz useradd nagios groupadd nagcmd usermod -a -G nagcmd nagios tar xvf nagios-plugins-1.4.16.tar.gz tar xvf nagios-3.4.3.tar.gz cd /tmp/nagios ./configure –with-command-group=nagcmd make all make install make install-init make install-config make install-commandmode make install-webconf cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/ chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg /etc/init.d/nagios start /etc/init.d/httpd start htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin cd /tmp/nagios-plugins-1* ./configure –with-nagios-user=nagios –with-nagios-group=nagios make make install chkconfig –add nagios chkconfig –level 35 nagios on chkconfig –add httpd chkconfig –level 35 httpd on Use the browser and go to http://SERVER_IP_ADRESS/nagios/ and off it goes Username:nagiosadmin password: whatever you set When installing Nagios (core) on Centos as per the install description and you have the  issue that you can reach the Nagios main webpage but can’t  reach any subpage. You are getting […]

Assumption: clean fresh minimal installed RedHat or Centos (or any similar linux) registered and updated to the latest revisions: This is a quick and dirty install for demo purpose. For the minimum of security please refer to http://doc.owncloud.org/server/5.0/admin_manual/installation.html rhn_register #with your details yum -y update #to get latest updates make sure either dns is working or your hosts and IP are in the local /etc/hosts file Time to start the clock: Install the needed packages. yum -y install mysql-server httpd php php-mysql unzip wget php-json php-xml php-mbstring php-zip php-gd curl php-curl php-pdo chkconfig httpd on; chkconfig mysqld on #It might be a good idea to reboot the box here. reboot /etc/init.d/mysqld start Initializing MySQL database:   Installing MySQL system tables.. . OK Filling help tables… OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR […]

Assumption: clean fresh minimal installed RedHat or Centos (or any similar linux) registered and updated to the latest revisions: rhn_register #with your details yum -y update #to get latest updates make sure either dns is working or your hosts and IP are in the local /etc/hosts file Time to start the clock: Install the needed packages. # yum -y install mysql-server httpd php php-mysql unzip wget # chkconfig httpd on; chkconfig mysqld on # /etc/init.d/mysqld start Initializing MySQL database:  Installing MySQL system tables.. . OK Filling help tables… OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password ‘new-password’ /usr/bin/mysqladmin -u root -h wiki.sabeo.ie password ‘new-password’ Alternatively you can run: /usr/bin/mysql_secure_installation which will also […]

%d bloggers like this: