Skip to content

Instantly share code, notes, and snippets.

@ankurk91
ankurk91 / install_lamp_ubuntu.sh
Last active May 7, 2026 02:54
Ubuntu 22/24 - PHP development (php 7.4 / 8.4, nginx)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu Server
export DEBIAN_FRONTEND=noninteractive
echo -e "\e[96m Adding php PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/php