Created
August 1, 2014 23:56
-
-
Save jamesmoey/5d3b6128d102646f403c to your computer and use it in GitHub Desktop.
Setup Nginx and PHP5 manifest
This file contains hidden or 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
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