---
title: "LAMP stack VPS: Apache, MariaDB, PHP · CloudSat"
description: "Deploy a LAMP stack on a CloudSat VPS: Apache 2.4, MariaDB and PHP installed with lamp.sh, with commands that add virtual hosts and databases for you."
url: https://cloudsat.io/apps/deploy-lamp
updated: 2026-11-18T15:52:35Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Web hosting](https://cloudsat.io/apps/category/web-hosting-stacks)

# LAMP on a VPS

The LAMP app installs Apache, MariaDB and PHP with the lamp.sh script, plus a \`lamp\` command that adds virtual hosts and databases.

[Deploy LAMP](https://dash.cloudsat.io/console/deploy?image=app%3Alamp&plan=cloud-1g) [All apps](https://cloudsat.io/apps)

## About LAMP

LAMP is the classic web stack: Linux, the Apache HTTP Server, a MySQL-family database and PHP. This app builds on the open-source lamp.sh script (GPL-3.0), which installs Apache 2.4, MariaDB and PHP-FPM and supports PHP releases from 7.4 to 8.5.

Much PHP software expects Apache with `.htaccess` support, so WordPress, Joomla, Drupal or a custom app run without changes. On CloudSat you get root access, NVMe storage and room for several sites on one VPS.

After deploy Apache serves the default site from `/data/www/default` on port 80, and the `lamp` command manages sites and databases.

## What you get with LAMP

- Apache 2.4 with PHP-FPM
- MariaDB 10.11, 11.4 or 11.8
- PHP versions from 7.4 to 8.5
- `lamp vhost add` creates a site in one command
- `lamp db add` creates a database and its user

## LAMP use cases

- Several client PHP sites on one server
- Legacy apps that depend on `.htaccess` rules
- A staging copy of a production PHP site

## After you deploy LAMP

1. When the server is **Running**, load `http://<server IP>/` to see the default page, then SSH in as root.
2. Run `lamp vhost add` to create a virtual host for your domain and `lamp db add` for its database.
3. Upload your code into the new site directory with `scp`, `rsync` or Git.
4. Point DNS at the server and install a TLS certificate, for example with Certbot, before launch.

## LAMP ports

Open these in your firewall if you use one: `80/tcp HTTP`, `443/tcp HTTPS`.

## LAMP FAQ

### LAMP or LEMP?

Apache reads per-directory `.htaccess` files, which many PHP apps rely on. Nginx in a [LEMP](https://cloudsat.io/apps/deploy-lemp) stack stays leaner under heavy concurrency but needs rewrite rules in its own config.

### Where do the config files live?

On Ubuntu, Apache's main file is `/etc/apache2/apache2.conf`, virtual hosts sit in `/etc/apache2/sites-enabled` and MariaDB reads `/etc/mysql/my.cnf`.

**Disclaimer.** The LAMP project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

## Apps like LAMP

[All apps in Web hosting](https://cloudsat.io/apps/category/web-hosting-stacks)

- [LEMP](https://cloudsat.io/apps/deploy-lemp): Web hosting The LEMP app sets up Nginx, a MySQL-compatible database and PHP-FPM on a clean VPS, a lean base for Laravel, WordPress or Symfony.
- [Apache HTTP Server](https://cloudsat.io/apps/deploy-apache-http-server): Web servers Apache HTTP Server is the long-standing open-source web server: virtual hosts, .htaccess, mod_rewrite, TLS and reverse proxying from one modular daemon.
- [phpMyAdmin and MySQL](https://cloudsat.io/apps/deploy-phpmyadmin-and-mysql): Databases This stack installs MySQL Community Server with phpMyAdmin, the PHP web interface for browsing tables, running SQL, importing dumps and managing users.
- [WordPress](https://cloudsat.io/apps/deploy-wordpress): CMS WordPress is the open-source CMS for blogs, business sites and online stores, with a block editor for building pages and a huge range of themes and plugins.
- [AdminBolt](https://cloudsat.io/apps/deploy-adminbolt): Web hosting AdminBolt is a commercial hosting control panel for AlmaLinux 9: sites, mail, DNS, databases and backups, licensed by AdminBolt after a 30-day trial.
- [aaPanel](https://cloudsat.io/apps/deploy-aapanel): Control panels aaPanel is a free Linux hosting panel: one-click LNMP or LAMP, then sites, databases, FTP and SSL from a browser, with a web terminal included.
