Web Wizard — Bash Script for Automated DNS, Web Server, and SSL Configuration

Script Web Wizard — Bash Script for Automated DNS, Web Server, and SSL Configuration

Web Wizard​

Copyright holder: AlexFrost
Type: Bash script
Supported distributions:
Ubuntu LTS 24.04, Debian 12


Web wizzard


Web Wizard is a multifunctional Bash script designed for quick setup of essential web infrastructure on a Linux server. It simplifies the deployment of name servers (NS), hostname configuration, website deployment using Apache, and SSL certificate installation via Certbot. Ideal for both beginners and experienced administrators who want to automate the standard server setup process.

Key Features​

  • DNS Server Setup (Bind9): Automatically creates zones, configurations, and restarts the service.
  • Hostname Configuration: Automatically sets the hostname based on the domain.
  • Apache Virtual Hosts Deployment: Automatically creates site directories, Apache configs, and log files.
  • SSL Setup via Certbot: Adds HTTPS using Let’s Encrypt.
  • Interactive Mode: Install only the components you need.

How to Use​

Make the script executable:
chmod +x web-wizard.sh.x
Run the script:
./web-wizard.sh.x
The script will guide you through each configuration step. Be sure to run it as root.

To deploy your own NS servers, you need at least two IP addresses:
yourdomain.com   203.0.113.10   ns1
yourdomain.com   203.0.113.11   ns2

DNS zone setup for domains:
ns1.yourdomain.com   203.0.113.10
ns2.yourdomain.com   203.0.113.11

If you encounter this error:
Error on line 135: ip addr add "$ip_addr"/"$NETMASK" dev "$MAIN_IFACE"
Simply re-run the script.

Download Web Wizard​

Content of this hidden block can only be seen by members of: Verified
Top