Shell Bash

Automated Server Configuration

Bash script for fully automated configuration of Debian-based servers — installs and configures LAMP, DNS, email (Postfix/Dovecot), FTP and optionally Webmin/Virtualmin.

A single bash script that takes a fresh Debian-based server and brings it to a fully configured production state with minimal interaction. Version 2.1.6.

What it configures

  1. LAMP — Apache, MySQL, PHP
  2. DNS — BIND configuration
  3. Email — Postfix (SMTP) + Dovecot (IMAP/POP3)
  4. FTP — vsftpd or ProFTPD
  5. Webmin / Virtualmin GPL — optional graphical server management

Usage

Copy the script to root home and execute:

chmod +x setup.sh && ./setup.sh