A powerful, distro-agnostic CLI utility to manage your LAMP stack (Apache, MariaDB, PHP). Designed to work seamlessly across Debian/Ubuntu, Arch Linux, Fedora, and their derivatives like Pop!_OS, CachyOS, and Zorin.
- Universal Compatibility: Automatically detects your package manager (
apt,dnf,pacman,zypper). - Smart Discovery: Dynamically finds service names (e.g.,
httpdvsapache2) and configuration paths. - Live Status: View real-time service status (β Running / β Stopped) directly from the menu.
- One-Touch Management: Start, stop, restart, and edit configs without memorizing systemctl commands.
- Auto-Initialization: Automatically handles MariaDB data directory setup (
mariadb-install-db) on fresh installs. - Security Guard: Includes a built-in check to ensure the script is run from the secure
/usr/local/bin/path.
Install the manager and all necessary dependencies with a single command:
curl -sSL https://raw.githubusercontent.com/yuw1xx/lamp/refs/heads/main/scripts/install.sh | bashIMPORTANT! This installer will detect your distribution, install the LAMP components if missing, and initialize the database. It requires sudo privileges.
Once installed, launch the manager from any terminal window:
lamp-managerThe manager provides a clean, stable numeric interface:
- Main Menu: Displays all detected services and their current live status.
- Service Actions: Choose a service to Start, Stop, Restart, or view a detailed Status log.
- Config Editor: Jump straight into the configuration file (apache2.conf, my.cnf, php.ini) using your system's default editor (nano/vim).
To remove the lamp-manager command and (optionally) purge the entire LAMP stack from your system: Bash
curl -sSL https://raw.githubusercontent.com/yuw1xx/lamp/refs/heads/main/scripts/uninstall.sh | bash- install.sh: The bootstrap script that prepares your environment and sets up the global command.
- uninstall.sh: The clean-up utility to remove the tool and/or the LAMP stack.
- lamp-manager: The core logic (securely installed to /usr/local/bin/).
This project aims to support as many Linux distributions as possible. If you encounter an issue on a specific distro, please feel free to open an Issue or submit a Pull Request!
Developed with β€οΈ for the Linux Community