PHP runtime for AWS Lambda
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
630 B

#! /bin/bash
START=$(pwd)
cd ~
wget https://downloads.php.net/~derick/php-7.4.0RC6.tar.gz
tar zxvf php-7.4.0RC6.tar.gz
cd php-7.4.0RC6
./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
make install
cd ~
wget -O phpredis-5.1.1.tar.gz https://github.com/phpredis/phpredis/archive/5.1.1.tar.gz
tar zxvf phpredis-5.1.1.tar.gz
cd phpredis-5.1.1
~/php-7.4.0RC6-build/bin/phpize
./configure --with-php-config=/home/ec2-user/php-7.4.0RC6-build/bin/php-config
make install