Skip to content

Instantly share code, notes, and snippets.

@y13i
Created July 29, 2014 11:59
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/67e948157b1d292346d6 to your computer and use it in GitHub Desktop.
Save y13i/67e948157b1d292346d6 to your computer and use it in GitHub Desktop.
memcache not installed?
# attributes/default.rb
default.php.version = "5.5.15"
default.php.directives = {
"date.timezone" => "Asia/Tokyo",
"memory_limit" => "128M",
"post_max_size" => "64M",
"upload_max_filesize" => "16M",
"output_handler" => "mb_output_handler",
"default_charset" => "UTF-8",
"mbstring.language" => "Japanese",
"mbstring.internal_encoding" => "UTF-8",
"mbstring.http_input" => "auto",
"mbstring.http_output" => "UTF-8",
"mbstring.encoding_translation" => "On",
"mbstring.detect_order" => "auto",
"mbstring.substitute_character" => "none",
}
# recipes/php.rb
include_recipe "php::source"
php_pear "memcache" do
action :install
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment