DCAI — Derek Coleman & Associates Inc logoDCAI

Home / Marketplace / LAMP Stack on Ubuntu 24.04 LTS

LAMP Stack on Ubuntu 24.04 LTS

The classic LAMP stack — Apache, MySQL, and PHP on Linux — ready to serve PHP applications the moment the VM boots. This image gives you a production-ready deployment within minutes of first boot — no dependency wrangling, no manual hardening checklist. Published and maintained by Derek Coleman & Associates Inc: freshly rebuilt against current security advisories and deployable straight from the Azure Marketplace into your own subscription.

Version: Apache 2.4 + MySQL 8.0 + PHP 8.3 (Ubuntu 24.04 packages)Platform: Ubuntu 24.04 LTSPorts: 80 (HTTP). Port 443 is allowed in the VM firewall and Apache listens on it, but it answers plain HTTP, not HTTPS, until you add a certificate for your domain (see Quick start)Category: Web & Proxy

What's included

  • Apache 2.4 + MySQL 8.0 + PHP 8.3 from the Ubuntu 24.04 packages
  • MySQL root password generated on your VM at first boot; MySQL listens on 127.0.0.1 only
  • Hardened Linux base with automatic security updates enabled
  • Trusted Launch support: Secure Boot + vTPM
  • Azure Monitor Agent, Defender for Cloud, and Update Manager install cleanly

Quick start

  1. Deploy from the Azure Marketplace (Get It Now → Create), choosing your SSH key at the Administration step.
  2. Allow inbound SSH (22) for yourself plus the application port(s): 80 (HTTP), and 443 once you have added a certificate — restrict to your own IP where possible. The in-image firewall already allows them; only the Network Security Group (NSG) keeps them closed.
  3. Browse to http://VM-IP/ — Apache answers immediately; put your site in /var/www/html/.
  4. Turn on HTTPS — it is not on out of the box: Apache listens on 443 but has no certificate, so that port answers plain HTTP. Point a DNS name at the VM (with port 80 reachable, because certbot proves the domain over HTTP), set `ServerName your.domain` in /etc/apache2/sites-available/000-default.conf and `sudo systemctl reload apache2`, then run `sudo apt install certbot python3-certbot-apache` (certbot is not pre-installed) and `sudo certbot --apache -d your.domain`, and allow 443 in the NSG.
  5. Connect to MySQL locally with `mysql -h 127.0.0.1 -u root -p` using the generated password (on images from 21 October 2026 onward, set a new root password first; see First login below) and create your application database.

Get your admin password (one time)

ssh <your-username>@<VM-IP>
sudo cat /root/.mysql-initial-password

This is the MySQL root password set at first boot (root@localhost uses caching_sha2_password). Connect with `mysql -h 127.0.0.1 -u root -p`; images from 21 October 2026 onward make you set a new root password before anything else. MySQL listens on 127.0.0.1 only.

Common use cases

  • PHP web applications and APIs
  • WordPress, Drupal, and CMS hosting
  • Legacy LAMP app lift-and-shift to Azure
  • Dev/test environments matching production

Why our images

Freshly rebuilt against the latest security advisories, no shared default credentials, Trusted Launch support, and automatic OS security updates — everything runs in your own Azure subscription under your governance.

Deploy LAMP Stack in minutes

Production-ready, hardened, and maintained. Deploy straight from the Azure Marketplace into your subscription.