Last active
August 29, 2015 14:07
-
-
Save saxenap/b9987273e096a053f7d3 to your computer and use it in GitHub Desktop.
Php extensions installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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