Commit f360a67f authored by Owain Jones's avatar Owain Jones
Browse files

add memcached and imagick install stuff

parent f06555de
......@@ -80,6 +80,27 @@ echo "export BOWERPHP_TOKEN=$GITHUB_API_KEY" >> ~/.bashrc
composer config -g github-oauth.github.com $GITHUB_API_KEY
export BOWERPHP_TOKEN=$GITHUB_API_KEY
# Setup memcache and imagick
cd /home/gliders/code
git clone 'https://github.com/php-memcached-dev/php-memcached.git'
cd php-memcached
phpize
./configure
make && sudo make install
echo 'extension=memcached.so' >> memcached.ini
sudo cp memcached.ini /etc/php.d/
cd /home/gliders/code
git clone 'https://github.com/mkoppanen/imagick.git'
cd imagick
phpize
./configure
make
sudo make install
echo 'extension=imagick.so' | sudo tee -a /etc/php.d/imagick.ini
sudo systemctl restart php-fpm
# Deploy the website
cd /home/gliders/code/gliders-website
sh bin/deploy.sh /var/gliders/www_dev dev
......
......@@ -174,6 +174,11 @@ echo '::1 dev.gliders.localhost gliders.localhost' >> /etc/hosts
# cp hhvm.service /etc/systemd/system/
# systemctl enable hhvm
# Install memcached
yum install -y memcached memcached-devel libmemcached-devel
systemctl enable memcached
systemctl start memcached
# Create gliders dirs and allow the webserver to read/write to them
# (Mostly this sets up SELinux rules)
mkdir -p /var/gliders/www_dev /var/gliders/www /var/gliders/incoming /var/gliders/logs /var/gliders/static /var/gliders/daemon/logs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment