Skip to content

Instantly share code, notes, and snippets.

@y13i
Created July 29, 2014 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save y13i/3121b709ac3840ade896 to your computer and use it in GitHub Desktop.
Save y13i/3121b709ac3840ade896 to your computer and use it in GitHub Desktop.
物理の力でmemcache moduleをねじ込む
bash "build php-memcache" do
action :run
not_if "php -m | grep memcache"
code <<-EOS
cd #{Chef::Config[:file_cache_path]}
pecl download memcache
tar -zxvf `ls . | grep memcache`
rm -f memcache-*.tgz package.xml
cd `ls . | grep memcache`
phpize && ./configure --enable-memcache && make
cp modules/memcache.so /usr/lib64/php/modules
echo "extension=memcache.so" >> /etc/php.d/memcache.ini
EOS
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment