http://forum.webhostbug.com/discussion/85/install-lnmp-with-tuxlite-script
https://github.com/Mins/TuxLite
Hi. You bought a new VPS. And if you want to build LNMP server faster. I recommended you use TuxLite script.
LNMP stand for Linux Nginx MySQL and PHP and this case we use Ubuntu (or Debian) Nginx MySQL PHP5. First we need correct and update linux system ( Ubuntu and Debian)
Correct hostname
apt-get update
apt-get install git
git clone https://github.com/Mins/TuxLite.git
cd TuxLite
Then edit config file
Open file install.sh and delete those line
echo ""
echo "Installing updates & configuring SSHD / hostname."
sleep 5
./setup.sh basic
Open file options.conf
#Fill your server detail, example
HOSTNAME=sv1
HOSTNAME_FQDN=sv1.webhostbug.net
SERVER_IP=192.241.140.234
SSHD_PORT=22
# phpMyAdmin = 1, Adminer = 2
DB_GUI=2
# Enable or disable AWStats. Options = yes|no
AWSTATS_ENABLE=no
Open file nginx.conf
then uncomment this line server_names_hash_bucket_size 64;
Ok Now we will make all scripts executable.
chmod 700 *.sh
chmod 700 options.conf
Install LAMP or LNMP stack.pls wait to finishing.
./install.sh
Add a new Linux user and add domains to the user.
adduser johndoe
./domain.sh add johndoe yourdomain.com
./domain.sh add johndoe subdomain.yourdomain.com
Install Adminer or phpMyAdmin
./setup.sh dbgui
Enable/disable public viewing of Adminer/phpMyAdmin
./domain.sh dbgui on
./domain.sh dbgui off
#Install and enable Varnish. Do not use Varnish unless you know #how to configure the VCL.
./varnish.sh install
./varnish.sh on
./varnish.sh off
#Post Install
#Your install is complete and your site works. Great! Now what? As #a responsible sysadmin you will need to perform some maintenance #and post install procedures.
#Occasionally update your server using
aptitude update
aptitude safe-upgrade
#Set up cronjobs to backup your databases and sites. The #backup.sh script can do this for you. Remember to download and #keep copies of your sites locally.
#Enable/Disable phpMyAdmin and AWstats from being publicly #accessible. This is to prevent brute force attacks on your #server. Enable only when you need them.
#Consider tweaking configurations to better utilize the amount #of memory available to your server. Read the readme for #respective web stacks for more information on config files to edit.
#Install Fail2Ban to protect your server from brute force SSH #login attempts.
`aptitude install fail2ban`
#Install DDOS Deflate script to mitigate denial of service attacks. Refer here http://deflate.medialayer.com/
Install LNMP with TuxLite script