php-fpm socket fixed

This commit is contained in:
Charlie Root 2023-11-16 21:25:31 +01:00
parent 024f2767cd
commit 46810b3b75
1 changed files with 6 additions and 2 deletions

8
php.cf
View File

@ -192,7 +192,7 @@ vars:
"fpm_pkgs" slist => { "php$(version)-fpm" }; "fpm_pkgs" slist => { "php$(version)-fpm" };
"fpm_service_name" string => "php$(version)-fpm"; "fpm_service_name" string => "php$(version)-fpm";
"fpm_socket" string => "/run/php/php$(version)-fpm.sock"; "fpm_socket" string => "/run/php/php$(version)-fpm.sock";
"fpm_socket_type" string => "unix"; "fpm_socket_type" string => "unix:";
"apt_repo_url" string => "https://packages.sury.org/php/"; "apt_repo_url" string => "https://packages.sury.org/php/";
"apt_repo_key" string => "https://packages.sury.org/php/apt.gpg"; "apt_repo_key" string => "https://packages.sury.org/php/apt.gpg";
@ -223,7 +223,7 @@ vars:
"fpm_pkgs" slist => {}; "fpm_pkgs" slist => {};
"fpm_service_name" string => "php-fpm"; "fpm_service_name" string => "php-fpm";
"fpm_socket" string => "127.0.0.1:9000"; "fpm_socket" string => "127.0.0.1:9000";
"fpm_socket_type" string => "inet"; "fpm_socket_type" string => "fcgi://";
centos:: centos::
"cli_exe" string => "/usr/bin/php"; "cli_exe" string => "/usr/bin/php";
@ -231,6 +231,7 @@ vars:
"fpm_pkgs" slist => { "php-fpm" }; "fpm_pkgs" slist => { "php-fpm" };
"fpm_service_name" string => "php$(version)-fpm"; "fpm_service_name" string => "php$(version)-fpm";
"fpm_socket" string => "/run/php-fpm/www.sock"; "fpm_socket" string => "/run/php-fpm/www.sock";
"fpm_socket_type" string => "unix:";
files: files:
@ -260,11 +261,14 @@ vars:
"service_deps" slist => { "service_deps" slist => {
"php_pkgs_installed" "php_pkgs_installed"
}; };
"service_name" string => "$(php.fpm_service_name)";
"service_cfg_name" string => "php_fpm";
methods: methods:
"any" usebundle => install_php; "any" usebundle => install_php;
"any" usebundle => wmde_install_packages(@(php.fpm_pkgs),"php_fpm"); "any" usebundle => wmde_install_packages(@(php.fpm_pkgs),"php_fpm");
"any" usebundle => wmde_enable_service("$(this.bundle)");
"any" usebundle => wmde_service("$(php.fpm_service_name)","php_kept|php_fpm_kept","php_repaired|php_fpm_repaired"), "any" usebundle => wmde_service("$(php.fpm_service_name)","php_kept|php_fpm_kept","php_repaired|php_fpm_repaired"),
depends_on => @(service_deps); depends_on => @(service_deps);