** Cross-VPS-compatible ** LEMP STACKSCRIPT for DEBIAN: VPS BIBLE




new password?
login
X

This script is out-of-date. Please check the stacks page for the latest version.

debian logo image

Run this script on a Debian distro & your domain is set up and ready to browse to: new user, Nginx, PHP-FPM, Suhosin, XCache, MySQL, Postfix for email, iptables, SSH keys, SSHD security and more, the whole darn lot totally tweaked-tastic!

This script is a beast. After you have launched a new Debian 5 distribution, switched the nameservers and setup your DNS within your VPS control panel .. run this script and within minutes you can surf to your domain.

That simple!

Setup Unmanaged VPS: The Ubuntu-Nginx Guide

Take your virtual private server from zero to hero

  .. from blank box to cute-as server ..  

with this easy-to-follow copy/paste guide.

22+ parts with video, here’s the index.

Cross-VPS Debian/LEMP Stackscript: Where are the Notes?

The Debian script is similar to that of its cousin Ubuntu .. and the procedure is identical with one exception *. Therefore you should follow that tutorial, substituting the Ubuntu script for Debian’s. Here’s the Ubuntu guide you need:-

LEMP Stack: *10 Minute* VPS Install 4 Lucid 10.04

* Debian Stackscript: Exceptions to that of Ubuntu

The script will stop twice asking for your preferences. The second time concerns securing MySQL and that is covered in the linked Ubuntu tutorial. The first, however, is unique to this guide as I have found setting locales automatically to be buggy on Debian.

Setting Locales on Debian

We have to tell the computer in what language to operate by default, from what territory and using what character set. When the script pauses you’ll see a dialogue with a long list of possible options that can be installed, such as:-


Please sign up for automatic premium content access.

Just $15/year* will save you hours, maybe days!

Alternatively, the vpsBible forum is free and you are welcome.

.. where en denotes English, GB Great Britain and UTF-8 being the character set (charset). Choose your options accordingly but, for instance, if you are Stateside you’d choose en_US.UTF-8 UTF-8 and, in the vast majority of cases, you want the UTF-8 charset. Head here for a list of country codes.

Clicking OK for your choice, you will then be asked to confirm that or another locale as your default. This may seem pointless but, for those VPS hosts that will have multi-users, for example speaking various languages, there will need to be various locales installed but also a default. For now, just choose your previously selected locale as the default and later, should you wish to add more or change the default, run the command:-


Please sign up for automatic premium content access.

Just $15/year* will save you hours, maybe days!

Alternatively, the vpsBible forum is free and you are welcome.

So here’s the Nginx, PHP-FPM et al script for Debian 5 which has been tested perfect on a Linode 360 VPS.

To end up with this highly configured, seriously secure and high performance server we have to edit some variables and, for some, to carry out some basic research.

To make life as easy as possible I’ve produced 2 identical scripts here (in terms of execution). They look different because one has comments to explain those all-important values. They do exactly the same thing.

Click on this link    ..    Show Me the Commented Script

Toggle to and fro as you prefer, perhaps using the comment-strewn script to guide you while filling out the values on the tidier script, copied to your text editor. (That way you’re less likely to miss a value.)

Enjoy:-


Please sign up for automatic premium content access.

Just $15/year* will save you hours, maybe days!

Alternatively, the vpsBible forum is free and you are welcome.

Setup Unmanaged VPS: The Ubuntu-Nginx Guide

Take your virtual private server from zero to hero

with this easy-to-follow copy/paste guide.

“My local PC runs Windows” Show me for Linux/Mac

22+ parts with video, here’s the index ..

Manage Unmanaged VPS: Ubuntu-Nginx Administration

Already set it up? We’d best maintain it then.

Toggle to the ..  Ubuntu-Nginx Admin Index

Manage Unmanaged VPS: Ubuntu-Nginx Administration

Maintain your virtual private server with ..

.. cheatsheets, tutorials, tips & guides.

Head back to the ..  Ubuntu-Nginx Installation Index

Nginx Admin: In the Works ..

This lot’s marked for addition already:-

  • Setup or Edit DNS using Bind
  • Network Tools Troubleshooting Guide
  • The Comprehensive Permissions Guide
  • Configuring Nginx Rewrites
  • Custom Website Error Page
  • Setting up Cron Jobs
  • Rsync for Incremental Remote-to-Local Backup
  • Cron & Rsync for Automatic Backup
  • Cron & mysqldump for Auto DB Backup
  • Safeguard Bandwidth with Hotlink Protection
  • Block Access with Nginx’ IP Deny



Got a Question? Want to Comment?

This site has no comments system. We've got a better system!

Please use the link at the top of the post and goto this topic's forum thread:-

  • to help build community
  • for a superior knowledge base
  • to keep info in one place, not diluted between forum & comments.

For those posts ported from Guvnr.com (pre-Feb/2010), archive comments remain.

Handy info from these comments is in the process of being ported to the forum and attributed to the original author.

If you think this idea sucks, let me know.

Thank you.