Last active
December 30, 2020 05:38
-
-
Save litwicki/bb370bec4aed448966f5c5146316a497 to your computer and use it in GitHub Desktop.
Install PHP8 on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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