Use php56-php-fpm entry to get conf instead of php56

tags/0.0.1_0.fc26_el5
Daniel Berteaud 8 years ago
parent 69e1a214d0
commit 27448561e2
  1. 7
      root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default00Header

@ -1,7 +1,7 @@
{ {
use esmith::ConfigDB; use esmith::ConfigDB;
my $c = esmith::ConfigDB->open_ro || die "Couldn't opeen the configuration database\n"; my $c = esmith::ConfigDB->open_ro || die "Couldn't opeen the configuration database\n";
my $php = $c->get( 'php' . $PHP_VERSION ); my $php = $c->get( 'php' . $PHP_VERSION . '-php-fpm' );
if ($php){ if ($php){
$MemoryLimit = $php->prop('MemoryLimit') || '128M'; $MemoryLimit = $php->prop('MemoryLimit') || '128M';
$MaxExecutionTime = $php->prop('MaxExecutionTime') || '30'; $MaxExecutionTime = $php->prop('MaxExecutionTime') || '30';
@ -10,7 +10,10 @@ if ($php){
$PostMaxSize = $php->prop('PostMaxSize') || '10M'; $PostMaxSize = $php->prop('PostMaxSize') || '10M';
$UploadMaxFilesize = $php->prop('UploadMaxFilesize') || '10M'; $UploadMaxFilesize = $php->prop('UploadMaxFilesize') || '10M';
$OpenBasedir = $php->prop('OpenBasedir') || undef; $OpenBasedir = $php->prop('OpenBasedir') || undef;
$DisableFunctions = $php->prop('DisableFunctions') || 'system,show_source,symlink,exec,dl,shell_exec,passthru,phpinfo,escapeshellarg,escapeshellcmd'; $DisableFunctions = $php->prop('DisableFunctions') || 'system,show_source,' .
'symlink,exec,dl,shell_exec,' .
'passthru,phpinfo,' .
'escapeshellarg,escapeshellcmd';
} }
return ""; return "";
} }

Loading…
Cancel
Save