Skip to content

Instantly share code, notes, and snippets.

@saxenap
Last active August 29, 2015 14:07
Show Gist options
  • Save saxenap/b9987273e096a053f7d3 to your computer and use it in GitHub Desktop.
Save saxenap/b9987273e096a053f7d3 to your computer and use it in GitHub Desktop.
Php extensions installation
#!/bin/bash
###############################################
# To use:
# rm -rf php-extensions
# wget https://gist.githubusercontent.com/saxenap/b9987273e096a053f7d3/raw/php-extensions
# chmod 777 php-extensions
# ./php-extensions
###############################################
BASE_Extensions_Dir="/etc/php-5.5.d"
BASE_URL="https://gist.githubusercontent.com/saxenap/b9987273e096a053f7d3/raw"
BASE_DIR="/home/ec2-user"
cd $BASE_DIR
rm -rf phpredis
wget $BASE_URL/phpredis
chmod 777 phpredis
./phpredis
echo "extension=redis.so" >> $BASE_Extensions_Dir/redis.ini
rm -rf phpredis
cd $BASE_DIR
rm -rf uuid
wget $BASE_URL/uuid
chmod 777 uuid
./uuid
rm -rf uuid
cd $BASE_DIR
service httpd restart
#!/bin/bash
wget https://github.com/nicolasff/phpredis/archive/master.zip
sudo unzip master.zip
cd phpredis-master
sudo phpize
sudo ./configure
sudo make && make install
sudo rm master.zip
rm -rf master.zip
#!/bin/bash
yum -y install libuuid-devel
pecl install uuid-devel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment