Skip to content

Instantly share code, notes, and snippets.

@iamdylanngo
Created December 4, 2021 01:49
Show Gist options
  • Save iamdylanngo/6458f9cb7c22872557d35f8d578e4253 to your computer and use it in GitHub Desktop.
Save iamdylanngo/6458f9cb7c22872557d35f8d578e4253 to your computer and use it in GitHub Desktop.
install-php8.1-ubuntu-20.04
# Add repository PHP to ubuntu 20.04
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
# Install PHP 8.1 to run Wordpress, Magento 2
sudo apt install php8.1-common php8.1-cli php8.1-fpm php8.1-opcache php8.1-gd php8.1-mysql php8.1-curl php8.1-intl php8.1-xsl php8.1-mbstring php8.1-zip php8.1-bcmath php8.1-soap
php -v
Thanks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment