Skip to content

Instantly share code, notes, and snippets.

@tnoborio
Created April 23, 2018 12:08
Show Gist options
  • Save tnoborio/b298fb8395e97e0f206a11fbca5d07c0 to your computer and use it in GitHub Desktop.
Save tnoborio/b298fb8395e97e0f206a11fbca5d07c0 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo yum update -y
sudo yum install gcc gcc-c++ libxml2-devel -y
wget http://jp2.php.net/get/php-7.2.4.tar.bz2/from/this/mirror -O php-7.2.4.tar.bz2
tar jxvf php-7.2.4.tar.bz2
mkdir -p php-lambda/php-bin
cd php-7.2.4
./configure --prefix=/home/ec2-user/php-lambda/php-bin/
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment