* 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:
@@ -1 +1 @@
|
||||
service
|
||||
configuraiton
|
||||
|
@@ -1 +0,0 @@
|
||||
enabled
|
@@ -1 +0,0 @@
|
||||
service
|
@@ -1 +0,0 @@
|
||||
Off
|
@@ -1 +0,0 @@
|
||||
configuration
|
@@ -1 +0,0 @@
|
||||
enabled
|
@@ -1 +0,0 @@
|
||||
service
|
@@ -1 +0,0 @@
|
||||
Off
|
@@ -1 +0,0 @@
|
||||
configuration
|
@@ -1 +0,0 @@
|
||||
enabled
|
@@ -1 +0,0 @@
|
||||
service
|
@@ -1 +0,0 @@
|
||||
Off
|
@@ -1 +0,0 @@
|
||||
configuration
|
10
root/etc/e-smith/db/configuration/migrate/smeserver-php
Normal file
10
root/etc/e-smith/db/configuration/migrate/smeserver-php
Normal 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;
|
||||
}
|
||||
}
|
@@ -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" }
|
||||
|
@@ -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" }
|
||||
|
@@ -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" }
|
||||
|
@@ -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" }
|
||||
|
@@ -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" }
|
@@ -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
|
||||
|
@@ -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
|
||||
}
|
||||
";
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user