
Looking to quickly launch a LAMP or LEMP stack on your VPS without spending 30+ minutes manually installing packages?
Weβve built a simple, open-source Bash script that lets you auto-install LAMP (Apache + MariaDB + PHP) or LEMP (Nginx + MariaDB + PHP-FPM) on Ubuntu or Debian β all in just a couple of minutes.
π§ What This Script Does
Once executed, the script:
- Prompts you to choose between LAMP and LEMP
- Detects PHP version and system OS
- Installs:
- Apache or Nginx
- MariaDB (MySQL-compatible)
- PHP with popular extensions
- UFW (Uncomplicated Firewall)
- Sets up:
- System services (auto-start on reboot)
- info.phpΒ test file to validate PHP install
- Basic firewall rules (SSH, HTTP, HTTPS)
β Supported Systems
This script works out-of-the-box on:
- Ubuntu 20.04, 22.04
- Debian 11 and above
Whether youβre a developer, sysadmin, student, or just want a fast web stack for testing β this script is for you.
π₯ How to Use
SSH into your VPS and run:
wget https://raw.githubusercontent.com/hosteons/lamp-lemp-oneclick-installer/main/lamp_lemp_installer.sh
chmod +x lamp_lemp_installer.sh
sudo ./lamp_lemp_installer.sh
Then visit http://YOUR_SERVER_IP/info.php to verify that PHP is working.
π» View Script on GitHub
π GitHub Repo:
π https://github.com/hosteons/lamp-lemp-oneclick-installer
The script is licensed under the MIT License, meaning you can use, share, or modify it freely. Attribution is appreciated.
π Why We Built This
At Hosteons.com, we serve thousands of VPS customers who often need quick server setups. This script was originally developed for internal use but is now open to the community.
Whether youβre using a Hosteons KVM VPS or any Linux-based VPS, this script works universally.
π Like It? Star It!
If you found the script useful, please consider β starring the repo or sharing it on social media. Your support helps us build and release more free tools.
π Related Links
- π»Β VPS Plans β Hosteons
- πΒ Hosteons Blog
- π¬Β Support Portal
π’ Share With Others!
Help others save time and effort by sharing this post with your developer friends, startup teams, or clients.
#HappyHosting
β Team Hosteons