Skip to content

Instantly share code, notes, and snippets.

@litwicki
Last active December 30, 2020 05:38
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 litwicki/bb370bec4aed448966f5c5146316a497 to your computer and use it in GitHub Desktop.
Save litwicki/bb370bec4aed448966f5c5146316a497 to your computer and use it in GitHub Desktop.
Install PHP8 on Ubuntu
#!/bin/sh
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt install php8.0-common php8.0-cli -y
sudo apt install php8.0-{bz2,curl,intl,mysql,readline,xml}
sudo apt install php8.0-pcov # PCOV code coverage tool
sudo apt install php8.0-xdebug # Xdebug debugger
# for nginx
sudo apt install php8.0-fpm
# for apache
#sudo apt install libapache2-mod-php8.0
# purge old versions of PHP if applicable
sudo apt purge '^php7.*'
php -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment