Skip to content

Instantly share code, notes, and snippets.

@gnidustotalus
Forked from DenisJunio/install_php_8_1.sh
Created April 26, 2023 06:19
Show Gist options
  • Save gnidustotalus/c28ad01674cbcb447ceddd2ce47e53c9 to your computer and use it in GitHub Desktop.
Save gnidustotalus/c28ad01674cbcb447ceddd2ce47e53c9 to your computer and use it in GitHub Desktop.
Laravel - PHP 8.1 Extensions - Ubuntu
#!/bin/bash
sudo apt install software-properties-common && sudo add-apt-repository ppa:ondrej/php -y
sudo apt update
sudo apt upgrade -y
sudo apt install php8.1 -y
sudo apt install php8.1-bcmath -y
sudo apt install php8.1-bz2 -y
sudo apt install php8.1-cli -y
sudo apt install php8.1-common -y
sudo apt install php8.1-curl -y
sudo apt install php8.1-dev -y
sudo apt install php8.1-gd -y
sudo apt install php8.1-igbinary -y
sudo apt install php8.1-imagick -y
sudo apt install php8.1-imap -y
sudo apt install php8.1-intl -y
sudo apt install php8.1-mbstring -y
sudo apt install php8.1-memcached -y
sudo apt install php8.1-msgpack -y
sudo apt install php8.1-mysql -y
sudo apt install php8.1-opcache -y
sudo apt install php8.1-pgsql -y
sudo apt install php8.1-readline -y
sudo apt install php8.1-redis -y
sudo apt install php8.1-soap -y
sudo apt install php8.1-ssh2 -y
sudo apt install php8.1-tidy -y
sudo apt install php8.1-xml -y
sudo apt install php8.1-xmlrpc -y
sudo apt install php8.1-zip -y
# sudo apt-get install php8.1 php8.1-bcmath php8.1-bz2 php8.1-cli php8.1-common php8.1-curl php8.1-dev php8.1-gd php8.1-igbinary php8.1-imagick php8.1-imap php8.1-intl php8.1-mbstring php8.1-memcached php8.1-msgpack php8.1-mysql php8.1-opcache php8.1-pgsql php8.1-readline php8.1-redis php8.1-ssh2 php8.1-soap php8.1-tidy php8.1-xml php8.1-xmlrpc php8.1-zip -y
@gnidustotalus
Copy link
Author

nginx

sudo add-apt-repository ppa:ondrej/nginx-mainline -y
sudo apt update
sudo apt upgrade -y
sudo apt install nginx php8.1-fpm -y
sudo apt install nginx-extras -y

@gnidustotalus
Copy link
Author

Apache

sudo add-apt-repository ppa:ondrej/apache2 -y
sudo apt update
sudo apt upgrade -y
sudo apt install apache2 libapache2-mod-php8.1 -y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment