ini adalah script sederhana untuk membuat email alert apabila partisi hampir penuh 1 2 3 4 5 6 7 8 9 #!/bin/bash SIZE=`df / |…
1. login ke server dengan user root 2. cd /root 3. vi .bashrc 4. tambahkan di line paling bawah echo ‘ALERT – Root Shell Access…
nano /etc/iptables.rules*filter :INPUT ACCEPT [368:102354] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [92952:20764374] -A INPUT -i lo -j ACCEPT -A INPUT -p tcp -m tcp –dport 22…
1. Download dari konsole: wget http://blog.maxserver.biz/wp-content/uploads/2016/08/reset.tar.gz 2. Extrack hasil downloadan: #tar -zxvf reset.tar.gz 3. Masuk ke folder reset: #cd reset 4. Permission filenya: #chmod +x reset.sh 5. Jalankan filenya dengan sudo atau…
mkdir .ssh nano .ssh/authorized_keys copas seluruh keyatau dengan perintah : echo “pastekan hasil copy sebelumnya” > ~/.ssh/authorized_keys login ke server bisa juga pake ssh-copy-id ex:…
yum install bind bind-utils jika sudah sesuaikan konfig bindnya seperti dibawah options { listen-on port 53 { any; }; listen-on-v6 port…
Berikut adalah contoh nya RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteRule ^products$ product.php RewriteRule ^products/$ product.php RewriteRule ^products/([a-zA-Z0-9_-]+)$ product.php?type=$1 [L]…
Step 1 – Install Packages on Monitoring Server rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm yum -y install nagios nagios-plugins-all nagios-plugins-nrpe nrpe php httpd chkconfig httpd…
To enable the passive port range on a server that uses ProFTPd, perform the following steps via the command line as the root user: With…