Install LNMP with script Tuxlite

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

  1. apt-get update
  2. apt-get install git
  3. git clone https://github.com/Mins/TuxLite.git
  4. cd TuxLite

Then edit config file

Open file install.sh and delete those line

  1. echo ""
  2. echo "Installing updates & configuring SSHD / hostname."
  3. sleep 5
  4. ./setup.sh basic

Open file options.conf

  1. #Fill your server detail, example
  2. HOSTNAME=sv1
  3. HOSTNAME_FQDN=sv1.webhostbug.net
  4. SERVER_IP=192.241.140.234
  5. SSHD_PORT=22
  6. # phpMyAdmin = 1, Adminer = 2
  7. DB_GUI=2
  8. # Enable or disable AWStats. Options = yes|no
  9. 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.

  1. chmod 700 *.sh
  2. 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.

  1. adduser johndoe
  2. ./domain.sh add johndoe yourdomain.com
  3. ./domain.sh add johndoe subdomain.yourdomain.com

Install Adminer or phpMyAdmin

./setup.sh dbgui

Enable/disable public viewing of Adminer/phpMyAdmin

  1. ./domain.sh dbgui on
  2. ./domain.sh dbgui off

#Install and enable Varnish. Do not use Varnish unless you know #how to configure the VCL.

  1. ./varnish.sh install
  2. ./varnish.sh on
  3. ./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.

  1. #Occasionally update your server using
  1. aptitude update
  2. aptitude safe-upgrade
  1. #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.
  2. #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.
  3. #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.
  4. #Install Fail2Ban to protect your server from brute force SSH #login attempts.
  5. `aptitude install fail2ban`
  6. #Install DDOS Deflate script to mitigate denial of service attacks. Refer here http://deflate.medialayer.com/

Install LNMP with TuxLite script