Author: Bocaletto Luca
SUPERLAMP is a Bash “app” for Debian/Ubuntu that automates, in one TUI-driven tool:
- Full LAMP stack (Apache2, MySQL/MariaDB, PHP + phpMyAdmin)
- FTP client/server (lftp, vsftpd) & Mail server (Postfix)
- Python 3 + pip/virtualenv, Git, build-essential & curl
- Node.js LTS via NodeSource, plus Composer & NVM
- Docker & Docker Compose
- Firewall (UFW) and intrusion protection (Fail2Ban)
- SSL provisioning (Certbot → Apache)
- “Smart” system maintenance:
• TTL-basedapt update
• retry/backoff on APT failures
• parallel downloads viaapt-fast
• unattended-upgrades for security patches
• old-kernel cleanup & dist-upgrade - Interactive Whiptail TUI for:
• Selecting/installing components
• Service status & start/stop/restart/enable/disable
• Database setup wizard
• New-site scaffolding & Apache vhost creation - CLI flags:
--dry-run
,--verbose
,--help
With SUPERLAMP you get a battle-tested, developer-friendly stack installer and service manager—perfect for rapid setup, safe automation and ongoing maintenance.
-
Automated Installation
"Apache2|apache2" "Database|mysql-server" "PHP|php libapache2-mod-php php-mysql php-cli" "phpMyAdmin|phpmyadmin" "Python3|python3 python3-pip virtualenv" "FTP Client|lftp" "FTP Server|vsftpd" "Mail Server|postfix" "Git|git" "Dev Tools|build-essential curl" "Node.js|nodejs" "Composer|composer" "NVM|nvm" "Docker|docker.io docker-compose" "Firewall|ufw" "Fail2Ban|fail2ban" "SSL (Certbot)|certbot python3-certbot-apache"
-
Service Manager
• Detect which components are installed
• Show running/stopped status
• Start | Stop | Restart | Enable | Disable services -
Developer Utilities
• Scaffold a new virtual‐host/site directory with sample PHP/Python files
• Easynewsite
andvhost
commands -
Modular & Safe
• Installs only missing packages
• Non-interactiveDEBIAN_FRONTEND=noninteractive
mode
• Logs all actions to/var/log/lampfm.log
Component | Package(s) |
---|---|
Web Server | apache2 |
Database Server | mysql-server or mariadb-server |
PHP | php , libapache2-mod-php , php-mysql , php-cli |
phpMyAdmin | phpmyadmin |
Python | python3 , python3-pip , virtualenv |
FTP Client | lftp |
FTP Server | vsftpd |
Mail Server | postfix |
Version Control | git |
After downloading lampfm.sh
, these commands are available:
sudo ./lampfm.sh install
sudo ./lampfm.sh status packages
sudo ./lampfm.sh status services
sudo ./lampfm.sh start apache2
sudo ./lampfm.sh stop mysql
sudo ./lampfm.sh restart vsftpd
sudo ./lampfm.sh enable postfix
sudo ./lampfm.sh disable apache2
sudo ./lampfm.sh newsite myproject
sudo ./lampfm.sh vhost add myproject.local /var/www/html/myproject
sudo ./lampfm.sh --help
wget https://example.com/lampfm.sh -O lampfm.sh
chmod +x lampfm.sh
sudo ./lampfm.sh install
-
Logging & Troubleshooting
Log file: /var/log/lampfm.log
Verbose mode: ./lampfm.sh install --verbose
Errors are highlighted in red; successes in green.