Skip to content

Instantly share code, notes, and snippets.

@magarrent
Last active January 22, 2024 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magarrent/b4e07e84ec8040828fa7841e889e9bca to your computer and use it in GitHub Desktop.
Save magarrent/b4e07e84ec8040828fa7841e889e9bca to your computer and use it in GitHub Desktop.
Install PHP 8.2 with Extensions for LEMP in Ubuntu 22. (Used for Laravel, but you may need for almost all other php frameworks)
add-apt-repository ppa:ondrej/php
sudo apt-get install php8.2 php8.2-fpm php8.2-mysql php8.2-cli php8.2-common php8.2-imap php8.2-redis php8.2-snmp php8.2-xml php8.2-zip php8.2-mbstring php8.2-curl php8.2-gd php8.2-soap php8.2-bcmath php8.2-intl redis
curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment