* Wed Mar 05 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-16.sme

- change key type from service to configuration [SME: 11367]
  cleanup older php and php-fpm keys
- set base php to php84 [SME: 12952]
  fix missing bits for php74 support
This commit is contained in:
2025-03-05 22:52:37 -05:00
parent d2789e5967
commit 4c21e412da
29 changed files with 34 additions and 18 deletions

View File

@@ -1 +1 @@
service
configuraiton

View File

@@ -1 +0,0 @@
configuration

View File

@@ -1 +0,0 @@
configuration

View File

@@ -1 +0,0 @@
configuration

View File

@@ -0,0 +1,10 @@
{
foreach my $sservice (qw(php)) {
$DB->set_prop($sservice, "type", "configuration") if ${$sservice}{type} eq "service";
}
# delete old php entries
foreach my $sservice (qw(php55 php55-php-fpm php56 php56-php-fpm php70 php70-php-fpm php71 php71-php-fpm)) {
my $popd = $DB->get($sservice) or next;
$popd->delete;
}
}

View File

@@ -1 +1,2 @@
TEMPLATE_PATH="/etc/php.ini"
MORE_DATA={ PHP_VERSION => 80, INCLUDE_PATH => ".:/opt/remi/php80/root/usr/share/pear:/opt/remi/php80/root/usr/share/php:/usr/share/php:/usr/share/pear", EXTENSION_DIR => "/opt/remi/php80/root/usr/lib64/php/modules" }

View File

@@ -1 +1,2 @@
TEMPLATE_PATH="/etc/php.ini"
MORE_DATA={ PHP_VERSION => 81, INCLUDE_PATH => ".:/opt/remi/php81/root/usr/share/pear:/opt/remi/php81/root/usr/share/php:/usr/share/php:/usr/share/pear", EXTENSION_DIR => "/opt/remi/php81/root/usr/lib64/php/modules" }

View File

@@ -1 +1,2 @@
TEMPLATE_PATH="/etc/php.ini"
MORE_DATA={ PHP_VERSION => 82, INCLUDE_PATH => ".:/opt/remi/php82/root/usr/share/pear:/opt/remi/php82/root/usr/share/php:/usr/share/php:/usr/share/pear", EXTENSION_DIR => "/opt/remi/php82/root/usr/lib64/php/modules" }

View File

@@ -1 +1,2 @@
TEMPLATE_PATH="/etc/php.ini"
MORE_DATA={ PHP_VERSION => 83, INCLUDE_PATH => ".:/opt/remi/php83/root/usr/share/pear:/opt/remi/php83/root/usr/share/php:/usr/share/php:/usr/share/pear", EXTENSION_DIR => "/opt/remi/php83/root/usr/lib64/php/modules" }

View File

@@ -0,0 +1,2 @@
TEMPLATE_PATH="/etc/php.ini"
MORE_DATA={ PHP_VERSION => 84, INCLUDE_PATH => ".:/opt/remi/php84/root/usr/share/pear:/opt/remi/php84/root/usr/share/php:/usr/share/php:/usr/share/pear", EXTENSION_DIR => "/opt/remi/php84/root/usr/lib64/php/modules" }

View File

@@ -1,5 +1,5 @@
for VER in php php72 php73 php74 php80 php81 php82 php83; do
for VER in php php72 php73 php74 php80 php81 php82 php83 php84; do
/usr/sbin/tmpwatch -umc --nodirs -q 7d /var/lib/php/$VER/tmp
/usr/sbin/tmpwatch -umc --nodirs -q 7d /var/lib/php/$VER/opcache
/usr/sbin/tmpwatch -umc --nodirs -q 7d /var/lib/php/$VER/wsdlcache

View File

@@ -18,6 +18,7 @@ $OUT = "/var/log/php/*/php*fpm.log {
/sbin/e-smith/service php81-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php82-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php83-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php84-php-fpm reload >/dev/null 2>&1 || true
endscript
}
@@ -37,6 +38,7 @@ $OUT = "/var/log/php/*/php*fpm.log {
/sbin/e-smith/service php81-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php82-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php83-php-fpm reload >/dev/null 2>&1 || true
/sbin/e-smith/service php84-php-fpm reload >/dev/null 2>&1 || true
endscript
}
";

View File

@@ -18,3 +18,5 @@
& stop
:programname, startswith, "php83-fpm" /var/log/php/php83/php83-fpm.log
& stop
:programname, startswith, "php84-fpm" /var/log/php/php84/php84-fpm.log
& stop

View File

@@ -5,7 +5,7 @@ use warnings;
use esmith::ConfigDB;
our $PHPDEFAULT = 84;
our $BASEPHP = 83;
our $BASEPHP = 84;
our @ISA = qw(Exporter);
our @EXPORT = qw( listPHPVersionFPM listPHPVersionShort listPHPVersionHash listPHPVersionHashShort PHPdefault PHPbase VersionToUse PhpFpmVersionToUse $defaultdisabledfunc %defaultPHPproperties);