php.sh 406 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. set -e
  3. export PHP_VERSION="8.0"
  4. declare -a plugins=(
  5. "cli"
  6. "fpm"
  7. "xml"
  8. # https://php.watch/versions/8.0/ext-json
  9. # "json"
  10. "imap"
  11. "intl"
  12. "mbstring"
  13. "bz2"
  14. "zip"
  15. "curl"
  16. "gd"
  17. "imagick"
  18. "mysql"
  19. "pgsql"
  20. "sqlite3"
  21. "redis"
  22. "bcmath"
  23. )
  24. for i in "${plugins[@]}"
  25. do
  26. sudo apt install -y php${PHP_VERSION}-$i
  27. done
  28. echo 'done.'