File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
lib/Virtualmin/Config/Plugin Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -377,23 +377,6 @@ sub actions {
377
377
$self -> logsystem(" mv /etc/php8/fpm/php-fpm.conf.default /etc/php8/fpm/php-fpm.conf >/dev/null 2>&1" );
378
378
}
379
379
380
- # Fix default PHP-FPM destroying runtime directory
381
- unless ($gconfig {' os_type' } =~ / debian-linux|ubuntu-linux/ ) {
382
- my $wwwconf = ' /etc/php-fpm.d/www.conf' ;
383
- my $php_fpm_service_dir = ' /etc/systemd/system/php-fpm.service.d' ;
384
- my $php_fpm_service_override = " $php_fpm_service_dir /override.conf" ;
385
- if (-r $wwwconf && !-r $php_fpm_service_override ) {
386
- my $unit_exists = (system (" systemctl cat php-fpm >/dev/null 2>&1" ) == 0);
387
- if ($unit_exists ) {
388
- make_dir($php_fpm_service_dir , oct (755)) unless -d $php_fpm_service_dir ;
389
- write_file_contents($php_fpm_service_override ,
390
- " [Service]\n RuntimeDirectoryPreserve=yes\n " );
391
- $self -> logsystem(" systemctl daemon-reload" );
392
- $self -> logsystem(" systemctl restart php-fpm" );
393
- }
394
- }
395
- }
396
-
397
380
# Disable mod_php in package managers
398
381
if ($gconfig {' os_type' } =~ / debian-linux|ubuntu-linux/ ) {
399
382
# Disable libapache2-mod-php* in Ubuntu/Debian
You can’t perform that action at this time.
0 commit comments