Skip to content

Instantly share code, notes, and snippets.

@jamesmoey
Created August 1, 2014 23:56
Show Gist options
  • Save jamesmoey/5d3b6128d102646f403c to your computer and use it in GitHub Desktop.
Save jamesmoey/5d3b6128d102646f403c to your computer and use it in GitHub Desktop.
Setup Nginx and PHP5 manifest
service { "php5-fpm":
ensure => running,
enable => true,
provider => init
}
service { "nginx":
ensure => running,
enable => true,
provider => init
}
file { "/etc/localtime":
ensure => link,
target => "/usr/share/zoneinfo/Australia/Sydney"
}
file { "/etc/php5/cli/conf.d/20-mcrypt.ini":
ensure => link,
target => "/etc/php5/mods-available/mcrypt.ini",
notify => Service["php5-fpm"]
}
file { "/usr/bin/node":
ensure => link,
target => "/usr/bin/nodejs"
}
augeas { "php5fpm-ini" :
incl => "/etc/php5/fpm/php.ini",
lens => "Php.lns",
changes => [
"set Date/date.timezone Australia/Sydney",
"set PHP/memory_limit 512M",
],
notify => Service["php5-fpm"]
}
augeas { "php5cli-ini" :
incl => "/etc/php5/cli/php.ini",
lens => "Php.lns",
changes => [
"set Date/date.timezone Australia/Sydney",
"set PHP/memory_limit 512M",
]
}
augeas { "xdebug":
incl => "/etc/php5/mods-available/xdebug.ini",
lens => "Php.lns",
changes => [
"set XDEBUG/xdebug.max_nesting_level 1024",
],
before => Service["php5-fpm"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment