finds.dev← search

// the find

teddysun/lamp

★ 2,918 · Shell · GPL-3.0 · updated May 2026

Install LAMP (Linux + Apache + MariaDB + PHP) for AlmaLinux/RockyLinux/CentOS/Debian/Ubuntu

A bash script that installs Apache + MariaDB + PHP on major Linux distros using the native package manager. It wraps dnf/apt-get with sane defaults and adds a `lamp` CLI for managing vhosts and databases. The target is solo developers or sysadmins standing up a traditional PHP stack on a cheap VPS.

Covers a wide distro matrix including EL8/9/10, Debian 11-13, and Ubuntu 22/24 with architecture support for both x86_64 and arm64. The `lamp` command is a genuine quality-of-life addition — vhost and database lifecycle in one place beats typing raw systemctl and mysql commands. PHP version coverage from 7.4 through 8.5 means you can actually run legacy apps without fighting the package manager. Actively maintained through mid-2026 despite being a 13-year-old project.

The whole thing is one script delegating to a package manager — there's no idempotency, so running it twice on the same box is undefined territory. No TLS provisioning built in, which means every new vhost needs manual Certbot wiring afterward. No containerisation path: if you later want Docker or want to replicate the setup, you're back to reading the README rather than running a compose file. The custom Teddysun RPM repository for Apache is a trust dependency with no transparency — you're fetching binaries from a personal CDN.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →