Archive for December, 2011

To setup a minimal CentOS 6 64-bit Nagios server:
1] Setup CentOS 6 64-bit as in guide (http://www.malaya-digital.org/setup-a-minimal-centos-6-0-64-bit-setup-with-networking/).
2] "yum update"
3] "vi /etc/sysconfig/selinux" and set "SELINUX=disabled".
4] "setenforce 0"
5] "shutdown -r now"
6] "rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm"
7] "yum install nagios nagios-plugins nagios-plugins-all nagios-plugins-nrpe php php-pear mod_ssl net-snmp net-snmp-utils sendmail"
› Continue reading...

To setup the server:
1] Setup CentOS 6 64-bit as in guide (http://www.malaya-digital.org/setup-a-minimal-centos-6-0-64-bit-setup-with-networking/).
2] "yum update"
3] "shutdown -r now"
4] "yum install nfs-utils rpcbind system-config-firewall-tui"
5] "vi /etc/sysconfig/selinux" and set "SELINUX=disabled".
6] "setenforce 0"
› Continue reading...

1] Create a .htpasswd file in the directory you want to be protected. The following example will make an user "fred" with the password you will supply.

htpasswd -c .htpasswd fred

2] Don't forget to have this in the Apache configuration file. It should be for the host you want protected.

Options FollowSymLinks
AllowOverride All

3] The following is an example .htaccess file. Something similar should be in the directory you want password protected.

AuthUserFile /full/path/to/.htpasswd
AuthType Basic
AuthName "My Secret Folder"
Require valid-user

Back to top