- Mengetahui Virtualisasi
yum install virt-whatvirt-what
- Urus History Dulu
chattr +i /root/.bash_history
- Swap
1GB = 1024 = 131072
2GB = 2048 = 262144
3GB = 3072 = 393216
4GB = 4096 = 524288
5GB = 5120 = 655360
6GB = 6144 = 786432
7GB = 7168 = 917504
8GB = 8192 = 1048576
9GB = 9216 = 1179648
10GB = 10240 = 1310720
11GB = 11264 = 1441792
12GB = 12288 = 1572864
13GB = 13312 = 1703936
14GB = 14336 = 1835008
15GB = 15360 = 1966080
16GB = 16384 = 2097152
2GB = 2048 = 262144
3GB = 3072 = 393216
4GB = 4096 = 524288
5GB = 5120 = 655360
6GB = 6144 = 786432
7GB = 7168 = 917504
8GB = 8192 = 1048576
9GB = 9216 = 1179648
10GB = 10240 = 1310720
11GB = 11264 = 1441792
12GB = 12288 = 1572864
13GB = 13312 = 1703936
14GB = 14336 = 1835008
15GB = 15360 = 1966080
16GB = 16384 = 2097152
swapoff -a
dd if=/dev/zero of=/swap bs=8192 count=1048576
chmod 0600 /swap
nano /etc/fstab
/swap swap swap defaults 0 0
mkswap /swap
sysctl vm.swappiness=50
swapon /swap
swapon -s
chattr +i /swap
chattr -i /swap
dd if=/dev/zero of=/swap bs=8192 count=1048576
chmod 0600 /swap
nano /etc/fstab
/swap swap swap defaults 0 0
mkswap /swap
sysctl vm.swappiness=50
swapon /swap
swapon -s
chattr +i /swap
chattr -i /swap
- Install cPanel
yum install nano
yum install wget
yum install perl
yum install zip unzip
yum install curl
yum install nano wget perl zip unzip curl
-yum install zip unzip
yum install curl
yum install nano wget perl zip unzip curl
chkconfig iptables off
-
/etc/init.d/iptables stop
(service iptables stop)cd /home
wget -N http://httpupdate.cpanel.net/latest
sh latest
-
Login ke RDP dan White List IP
/usr/local/cpanel/bin/updatephpmyadmin --force
- Install Cagefs
- Anti Symlink & Jumping
wget http://layer1.rack911.com/before_apache_make -O /scripts/before_apache_make
chmod 700 /scripts/before_apache_make
chmod 700 /scripts/before_apache_make
- OCR
wget http://leptonica.org/source/leptonica-1.73.tar.gz
wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz
tar xzvf leptonica-1.73.tar.gz
cd leptonica-1.73
./configure
make
make install
cd ..
tar xzvf tesseract-ocr-3.02.02.tar.gz
cd tesseract-ocr
./autogen.sh
./configure
make
make install
ldconfig
-
wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz
tar xzvf leptonica-1.73.tar.gz
cd leptonica-1.73
./configure
make
make install
cd ..
tar xzvf tesseract-ocr-3.02.02.tar.gz
cd tesseract-ocr
./autogen.sh
./configure
make
make install
ldconfig
-
cd /usr/local/share/tessdata
wget http://galaxyhostinglive.org/Anafajar/ocr.zip
unzip ocr.zip
wget http://www.leptonica.org/source/leptonica-1.69.tar.gz
tar xzvf leptonica-1.69.tar.gz
cd leptonica-1.69
wget http://www.leptonica.org/source/leptonica-1.69.tar.gz
tar xzvf leptonica-1.69.tar.gz
cd leptonica-1.69
- Firewall
rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
cd
perl /etc/csf/csftest.pl
csf -r
- ddos
wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 0700 install.sh
./install.sh
./install.sh
nano /usr/local/ddos/ddos.conf
Protection Manager
wget -O addon_promgr.php http://galaxyhostinglive.org/community/protection-manager/addon_promgr.txt
chmod 700 addon_promgr.php
-
rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_promgr.php
rm -Rf /usr/local/cpanel/whostmgr/docroot/cgi/promgr
/usr/local/cpanel/bin/unregister_appconfig promgr
---
Install Softaculous
chmod 755 install.sh
./install.sh
---
CHMOD Files : 0664
CHMOD Directory : 0755
-----
Install NgiNx
-
cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./pythonfix
./nginxinstaller install
-
/etc/init.d/httpd restart
-
0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client
*/1 * * * * rm -Rf /tmp/nginx_client/*
Uninstall NgiNx
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller uninstall
