Skip to content

Instantly share code, notes, and snippets.

@jazio
Last active September 28, 2020 14:40
Show Gist options
  • Save jazio/972e691824354fdb2c4e6cead0bf352e to your computer and use it in GitHub Desktop.
Save jazio/972e691824354fdb2c4e6cead0bf352e to your computer and use it in GitHub Desktop.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DEBIAN UBUNTU MINT
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# PHP
sudo apt update
sudo apt install php php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath
php -v
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CENTOS RHEL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sudo dnf install php php-cli php-zip php-json ...
# COMPOSER
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '795f976fe0ebd8b75f26a6dd68f78fd3453ce79f32ecb33e7fd087d39bfeb978342fb73ac986cd4f54edd0dc902601dc') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv ~/composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer
composer -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment