parent
9d5481ddfb
commit
3cff192c10
4 changed files with 40 additions and 8 deletions
@ -1 +1,17 @@ |
|||||||
|
{ |
||||||
|
use esmith::ConfigDB; |
||||||
|
my $c = esmith::ConfigDB->open_ro || die "Couldn't opeen the configuration database\n"; |
||||||
|
my $php = $c->get( 'php' . $PHP_VERSION ); |
||||||
|
if ($php){ |
||||||
|
$MemoryLimit = $php->prop('MemoryLimit') || '128M'; |
||||||
|
$MaxExecutionTime = $php->prop('MaxExecutionTime') || '30'; |
||||||
|
$AllowUrlFopen = $php->prop('AllowUrlFopen') || 'off'; |
||||||
|
$MaxChildren = $php->prop('MaxChildren') || '15'; |
||||||
|
$PostMaxSize = $php->prop('PostMaxSize') || '10M'; |
||||||
|
$UploadMaxFilesize = $php->prop('UploadMaxFilesize') || '10M'; |
||||||
|
$OpenBasedir = $php->prop('OpenBasedir') || undef; |
||||||
|
$DisableFunctions = $php->prop('DisableFunctions') || undef; |
||||||
|
} |
||||||
|
return ""; |
||||||
|
} |
||||||
[php{ $PHP_VERSION }] |
[php{ $PHP_VERSION }] |
||||||
|
@ -1,7 +1,7 @@ |
|||||||
pm = dynamic |
pm = dynamic |
||||||
pm.max_children = 15 |
pm.max_children = { $MaxChildren } |
||||||
pm.start_servers = 3 |
pm.start_servers = 3 |
||||||
pm.min_spare_servers = 3 |
pm.min_spare_servers = 3 |
||||||
pm.max_spare_servers = 6 |
pm.max_spare_servers = 4 |
||||||
pm.max_requests = 5000 |
pm.max_requests = 5000 |
||||||
request_terminate_timeout = 5m |
request_terminate_timeout = { $MaxExecutionTime } |
||||||
|
Loading…
Reference in new issue