compile.sh 630 B

1234567891011121314151617181920
  1. #! /bin/bash
  2. START=$(pwd)
  3. cd ~
  4. wget https://downloads.php.net/~derick/php-7.4.0RC6.tar.gz
  5. tar zxvf php-7.4.0RC6.tar.gz
  6. cd php-7.4.0RC6
  7. ./configure --prefix=/home/ec2-user/php-7.4.0RC6-build/ --with-curl --with-zlib --with-openssl --enable-bcmath --enable-mbstring --with-mysqli --enable-sockets --without-sqlite3 --disable-fileinfo --disable-cgi
  8. make install
  9. cd ~
  10. wget -O phpredis-5.1.1.tar.gz https://github.com/phpredis/phpredis/archive/5.1.1.tar.gz
  11. tar zxvf phpredis-5.1.1.tar.gz
  12. cd phpredis-5.1.1
  13. ~/php-7.4.0RC6-build/bin/phpize
  14. ./configure --with-php-config=/home/ec2-user/php-7.4.0RC6-build/bin/php-config
  15. make install