System:
CentOS 6.6,ip address: 192.168.99.30, SELINUX=disabled
1.Install Apache,PHP,MySQL and pre-requisite packages.
# yum groupinstall -y "Development tools"
# yum groupinstall -y "Web Server"
# yum groupinstall -y "MySQL Database server"
System:
CentOS 6.6,ip address: 192.168.99.30, SELINUX=disabled
1.Install Apache,PHP,MySQL and pre-requisite packages.
# yum groupinstall -y "Development tools"
# yum groupinstall -y "Web Server"
# yum groupinstall -y "MySQL Database server"
Procedure:
1. Open a command window in the guest operating system, obtain and import the VMware Packaging Public Keys.
# mkdir /opt/vmtools-key ; cd /opt/vmtools-key
# wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub
# wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub
# rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub
# rpm --import VMWARE-PACKAGING-GPG-DSA-KEY.pub
Beberapa hari yang lalu cek tail -f /var/log/message terlihat banyak error messages seperti ini:
named[xxxx]: error (FORMERR) resolving ‘./NS/IN’: internet.ip.address#53
System DNS server menggunakan bind 9.8.2 di CentOS 6.2
Beberapa hari yang lalu DNS internal Bind 9.8 CentOS 6.2 ngadat tidak mau resolve request, jadi gak bisa connect internet…
Cek di error message /var/log/messages terlihat named[3693]: error (failure) resolving bla bla bla
Setelah googling ketemu solusinya, katanya disuruh disable dnssec, entah kenapa dnssec membuat bind jadi error..
Berikut langkah-langkah yang saya lakukan:
1.Comment parameter-parameter dnssec di named.conf
/*dnssec-enable yes;*/
/*dnssec-validation yes;*/
/*dnssec-lookaside auto;*/
2.Restart named service
# /etc/init.d/named restart
Done! Seharusnya DNS server berfungsi normal seperti semula..
I. Install ClamAV
# yum --enablerepo=rpmforge -y install clamav
# vi /etc/freshclam.conf
Line 122: make it comment
NotifyClamd /etc/clamd.conf
-Update clamav
# freshclam
Command to know list of group install
# yum grouplist
# yum grouplist my*
bla bla bla..
-Install Apache using groupinstall
# yum groupinstall "Web Server"
Start Apache and set it to start on boot:
# service httpd start
# chkconfig httpd on
Continue reading
Skenario:
Router bandwidth management:192.168.99.1 — eth0:[Squid TPROXY Bridge(br0=192.168.99.15)]:eth1 — clients:192.168.99.x/24
I. Konfigurasi Network interfaces
-Install bridge-utils
# yum -y install bridge-utils
-Make bridge interface br0 then save
# vi /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
ONBOOT=yes
TYPE=Bridge
BOOTPROTO=static
IPADDR=192.168.99.15
NETMASK=255.255.255.0
GATEWAY=192.168.99.1
DNS1=192.168.99.5
DNS2=192.168.99.6
DNS3=192.168.99.1
Skenario 1: Setup Anonymous FTP server
-Install vsftpd
# yum -y install vsftpd
-Create folder for anonymous ftp sharing
# mkdir /home/ftp-anon
-Configure vsftpd.conf
# cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.bak
# vi /etc/vsftpd/vsftpd.conf
Continue reading
Skenario:
Primary DNS : 192.168.99.5
Slave DNS : 192.168.99.6
II. Edit /etc/hosts
# vi /etc/hosts
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost ns2
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost ns2
192.168.99.6 ns2.bachem.local ns2
III. Install & Setting Bind chroot for DNS Server
-Install Bind chroot
# yum -y install bind bind-chroot
I. Edit /etc/hosts
# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.99.5 ns1.bachem.local ns1
II. Install & Setting Bind chroot for DNS Server
-Install Bind
# yum -y install bind bind-chroot