Last active
February 23, 2023 15:57
-
-
Save patrickmaciel/7d779c831377be4b10363eff0e214925 to your computer and use it in GitHub Desktop.
PHP 7.4 Install Ubuntu 22.04 #php #apt #php #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 | |
# This command and the ppa and auto apt-get update after that | |
sudo env LC_ALL=C.UTF-8 add-apt-repository --yes ppa:ondrej/php | |
# Install PHP 7.2 and the most common extesions | |
sudo apt-get install php7.4-fpm php7.4-common php7.4-dev php7.4-curl php7.4-gd php7.4-json php7.4-mysql php7.4-odbc php7.4-pgsql php7.4-pspell php7.4-readline php7.4-sqlite3 php7.4-tidy php7.4-xml php7.4-xmlrpc php7.4-bcmath php7.4-bz2 php7.4-intl php7.4-mbstring php7.4-phpdbg php7.4-soap php7.4-zip php-imagick php-redis php-memcached |
Update the current version of PHP on terminal
sudo update-alternatives --config php
sudo apt-get install php8.2-fpm php8.2-common php8.2-dev php8.2-curl php8.2-gd php8.2-mysql php8.2-odbc php8.2-pgsql php8.2-pspell php8.2-readline php8.2-sqlite3 php8.2-tidy php8.2-xml php8.2-xmlrpc php8.2-bcmath php8.2-bz2 php8.2-intl php8.2-mbstring php8.2-phpdbg php8.2-soap php8.2-zip php-imagick php-redis php-memcached
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP 8.1