Ubuntu 24.04 Full Setup: LAMP Stack + Docker & Docker Compose (One Script)
dev.to·1d·
Discuss: DEV
🐧Open source software
Preview
Report Post

✅ Ubuntu 24.04 Full Setup: LAMP Stack + Docker & Docker Compose (One Script)

If you’re setting up a new Ubuntu 24.04 server (Noble Numbat) and want a complete environment for web development, this guide is for you.

This tutorial installs:

✅ Apache2

✅ MySQL Server

✅ PHP (7.4 / 8.0 / 8.1 / 8.2 / 8.3 / 8.4)

✅ Common PHP extensions

✅ phpMyAdmin (optional)

✅ Docker + Docker Compose (official repo)

✅ UFW firewall rules (optional)


⚠️ Notes Before You Start

✅ PHP versions

Ubuntu 24.04 default PHP is usually 8.3, but this guide supports multiple PHP versions using the widely used Ondrej PHP PPA.

✅ Supported versions:

  • PHP 7.4
  • PHP 8.0
  • PHP 8.1
  • PHP 8.2
  • PHP 8.3
  • PHP 8.4

⚠️ PHP 8.5 does not exist yet (latest is…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help