Created
June 8, 2009 08:57
-
-
Save sheldonh/125717 to your computer and use it in GitHub Desktop.
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
| # This fix should only be applied to FastCGI-enabled hosts, because our | |
| # FastCGI implementation provides per-user session directories, which | |
| # get around the strict permissions problem that had Debian disable | |
| # session garbage collection in the first place. | |
| class php_session_gc_fix { | |
| file { | |
| "/etc/php4/conf.d/session_gc_fix.ini": | |
| ensure => $fastcgi == ? { | |
| 1 => file, | |
| 0 => absent, | |
| }, | |
| owner => "root", | |
| group => "root", | |
| mode => 644, | |
| source => "puppet://$server/files/etc/php4/conf.d/session_gc_fix.ini", | |
| "/etc/php5/conf.d/session_gc_fix.ini": | |
| ensure => $fastcgi == ? { | |
| 1 => file, | |
| 0 => absent, | |
| }, | |
| owner => "root", | |
| group => "root", | |
| mode => 644, | |
| source => "puppet://$server/files/etc/php5/conf.d/session_gc_fix.ini", | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment