Skip to content

Instantly share code, notes, and snippets.

@yasirrose
Created April 9, 2021 12:51
Show Gist options
  • Save yasirrose/0b13b13ba32a413abd0a63fe3d1aea51 to your computer and use it in GitHub Desktop.
Save yasirrose/0b13b13ba32a413abd0a63fe3d1aea51 to your computer and use it in GitHub Desktop.
Install PHP and Composer on ATX Sites
#!/bin/bash
sudo apt autoremove -y
sudo apt install software-properties-common -y
sudo add-apt-repository ppa:ondrej/php -y
sudo apt update -y
sudo apt install -y zip unzip php8.0 php8.0-cli php8.0-common php8.0-curl php8.0-intl php8.0-mbstring php8.0-mysql php8.0-odbc php8.0-redis php8.0-sqlite3 php8.0-xml php8.0-zip php8.0-fpm
sudo systemctl enable php8.0-fpm
wget -O composer-setup.php https://getcomposer.org/installer
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
suro rm composer-setup.php
echo -e "Installed the PHP and Composer Successfully"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment