" >> /var/www/index.html
echo "

" >> /var/www/index.html
echo "
Welcome to our site
" >> /var/www/index.html
echo "
it seems the website is still under development, please visit again later
" >> /var/www/index.html
echo "
Copyright © All right reserved.
" >> /var/www/index.html
echo "
" >> /var/www/index.html
echo "" >> /var/www/index.html
echo "" >> /var/www/index.html
############################### end file ###############################
echo "-----------------------------------------------------------------"
echo "-- Installing ConfigServer Security & Firewall"
echo "-----------------------------------------------------------------"
apt-get install -y -f libapache2-mod-evasive
read -p "Do you want install ConfigServer Security & Firewall [Y/n] ? " instal_csf
shopt -s nocasematch
if [[ $instal_csf =~ y|es ]]; then
cd /tmp
wget http://configserver.com/free/csf.tgz
tar zxvf csf.tgz
cd /csf
chmod +x install.sh
./install.sh
cp /etc/csf/csf.conf /etc/csf/csf.conf.bak
sed -i -e 's/TESTING = "1"/TESTING = "0"/g' /etc/csf/csf.conf
sed -i -e 's/AUTO_UPDATES = "0"/AUTO_UPDATES = "1"/g' /etc/csf/csf.conf
sed -i -e 's/LF_HTACCESS = "5"/LF_HTACCESS = "9"/g' /etc/csf/csf.conf
csf -r
else
read -p "Press ENTER to continue.." continue
fi
shopt -u nocasematch
echo "-----------------------------------------------------------------"
echo "-- Securing PHP and Apache"
echo "-----------------------------------------------------------------"
read -p "Do you want update PHP and MySQL [Y/n] ? " updatelamp
shopt -s nocasematch
if [[ $updatelamp =~ y|es ]]; then
sed -i -e 's/#deb http://packages.dotdeb.org stable all/deb http://packages.dotdeb.org stable all/g' /etc/apt/sources.list
sed -i -e 's/#deb-src http://packages.dotdeb.org stable all/deb-src http://packages.dotdeb.org stable all/g' /etc/apt/sources.list
apt-get update && apt-get safe upgrade
else
read -p "Press ENTER to continue.." continue
fi
shopt -u nocasematch
echo "-----------------------------------------------------------------"
echo "-- Securing SSH, PHP and Apache"
echo "-----------------------------------------------------------------"
sed -i -e 's/expose_php = On/expose_php = Off/g' /etc/php/php.ini
sed -i -e 's/ServerSignature On/ServerSignature Off/g' /etc/apache2/apache2.conf
echo "ClientAliveInterval 10" >> /etc/ssh/sshd_config
# Reconfigure sshd - change port and disable root login
sed -i 's/^Port [0-9]*/Port 911/' /etc/ssh/sshd_config
#sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
#read -p "Enter Unix username ? " ssh_usrname
#adduser ssh_usrname
#echo "${ssh_usrname} ALL=NOPASSWD: ALL" >> /etc/sudoers
cat > /etc/motd <