Skip to content

Instantly share code, notes, and snippets.

@c7v
Forked from flyingluscas/InstallPHP7.0CLI.md
Last active February 1, 2022 06:13
Show Gist options
  • Save c7v/2c89df87dc98e35e200990e877dcaace to your computer and use it in GitHub Desktop.
Save c7v/2c89df87dc98e35e200990e877dcaace to your computer and use it in GitHub Desktop.
Install PHP 7.0 CLI
$ sudo add-apt-repository ppa:ondrej/php; sudo apt-get update
$ sudo apt-get install php7.4-cli -y
$ sudo apt-get install -y \
  php7.4-dom \
  php7.4-gd \
  php7.4-zip \
  php7.4-mbstring \
  php7.4-curl \
  php7.4-xdebug \
  php-xml \
  php7.4-sqlite3 \
  php7.4-mysql \
  php7.4-phar \
  php7.4-json \
  php7.4-pgsql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment