|
|
@ -6,7 +6,8 @@ my $a = esmith::AccountsDB->open_ro || die "Couldn't open the accounts database" |
|
|
|
foreach my $share ($a->get_all_by_prop(type => 'share')){ |
|
|
|
foreach my $share ($a->get_all_by_prop(type => 'share')){ |
|
|
|
my $version = $share->prop('PHPVersion') || ''; |
|
|
|
my $version = $share->prop('PHPVersion') || ''; |
|
|
|
my $dynamic = $share->prop('DynamicContent') || 'disabled'; |
|
|
|
my $dynamic = $share->prop('DynamicContent') || 'disabled'; |
|
|
|
next unless ($dynamic eq 'enabled' && $version eq $PHP_VERSION); |
|
|
|
my $custom = $share->prop('PHPCustomPool') || undef; |
|
|
|
|
|
|
|
next unless ($dynamic eq 'enabled' && $version eq $PHP_VERSION && !$custom); |
|
|
|
my $key = $share->key; |
|
|
|
my $key = $share->key; |
|
|
|
my $pool_name = 'php' . $version . '-' . $key; |
|
|
|
my $pool_name = 'php' . $version . '-' . $key; |
|
|
|
my $memory_limit = $share->prop('PHPMemoryLimit') || '128M'; |
|
|
|
my $memory_limit = $share->prop('PHPMemoryLimit') || '128M'; |
|
|
|