diff --git a/config-AlmaLinux-Linux-6.0-ALL b/config-AlmaLinux-7.0-ALL similarity index 100% rename from config-AlmaLinux-Linux-6.0-ALL rename to config-AlmaLinux-7.0-ALL diff --git a/config-Rocky-Linux-6.0-ALL b/config-CentOS-Stream-Linux-8.0-ALL similarity index 100% rename from config-Rocky-Linux-6.0-ALL rename to config-CentOS-Stream-Linux-8.0-ALL diff --git a/config-Oracle-Linux-8.0-ALL b/config-Oracle-Linux-8.0-ALL new file mode 100644 index 0000000..e4e8505 --- /dev/null +++ b/config-Oracle-Linux-8.0-ALL @@ -0,0 +1,9 @@ +nginx_config=/etc/nginx/nginx.conf +nginx_cmd=/usr/sbin/nginx +start_cmd=systemctl start nginx +stop_cmd=systemctl stop nginx +apply_cmd=systemctl restart nginx +child_procs=4 +php_socket=1 +listen_mode=1 +proxy_websockets=0 diff --git a/config-Redhat-Enterprise-Linux-7.0-ALL b/config-Redhat-Enterprise-Linux-7.0-ALL index 142f157..e4e8505 100644 --- a/config-Redhat-Enterprise-Linux-7.0-ALL +++ b/config-Redhat-Enterprise-Linux-7.0-ALL @@ -1,8 +1,8 @@ nginx_config=/etc/nginx/nginx.conf nginx_cmd=/usr/sbin/nginx -start_cmd=service nginx start -stop_cmd=service nginx stop -apply_cmd=service nginx restart +start_cmd=systemctl start nginx +stop_cmd=systemctl stop nginx +apply_cmd=systemctl restart nginx child_procs=4 php_socket=1 listen_mode=1 diff --git a/config-Rocky-Linux-7.0-ALL b/config-Rocky-Linux-7.0-ALL new file mode 100644 index 0000000..e4e8505 --- /dev/null +++ b/config-Rocky-Linux-7.0-ALL @@ -0,0 +1,9 @@ +nginx_config=/etc/nginx/nginx.conf +nginx_cmd=/usr/sbin/nginx +start_cmd=systemctl start nginx +stop_cmd=systemctl stop nginx +apply_cmd=systemctl restart nginx +child_procs=4 +php_socket=1 +listen_mode=1 +proxy_websockets=0 diff --git a/config-Ubuntu-Linux-18.04-ALL b/config-Ubuntu-Linux-18.04-ALL new file mode 100644 index 0000000..c72da22 --- /dev/null +++ b/config-Ubuntu-Linux-18.04-ALL @@ -0,0 +1,11 @@ +nginx_config=/etc/nginx/nginx.conf +nginx_cmd=/usr/sbin/nginx +start_cmd=systemctl start nginx +stop_cmd=systemctl stop nginx +apply_cmd=systemctl restart nginx +add_to=/etc/nginx/sites-available +add_link=/etc/nginx/sites-enabled +child_procs=4 +php_socket=1 +listen_mode=1 +proxy_websockets=0 diff --git a/config-debian-linux b/config-debian-linux index 6bf368b..c72da22 100644 --- a/config-debian-linux +++ b/config-debian-linux @@ -1,8 +1,8 @@ nginx_config=/etc/nginx/nginx.conf nginx_cmd=/usr/sbin/nginx -start_cmd=service nginx start -stop_cmd=service nginx stop -apply_cmd=service nginx restart +start_cmd=systemctl start nginx +stop_cmd=systemctl stop nginx +apply_cmd=systemctl restart nginx add_to=/etc/nginx/sites-available add_link=/etc/nginx/sites-enabled child_procs=4 diff --git a/config-debian-linux-10.0-ALL b/config-debian-linux-10.0-ALL new file mode 100644 index 0000000..c72da22 --- /dev/null +++ b/config-debian-linux-10.0-ALL @@ -0,0 +1,11 @@ +nginx_config=/etc/nginx/nginx.conf +nginx_cmd=/usr/sbin/nginx +start_cmd=systemctl start nginx +stop_cmd=systemctl stop nginx +apply_cmd=systemctl restart nginx +add_to=/etc/nginx/sites-available +add_link=/etc/nginx/sites-enabled +child_procs=4 +php_socket=1 +listen_mode=1 +proxy_websockets=0 diff --git a/config-redhat-linux b/config-redhat-linux index 500ea03..e4e8505 100644 --- a/config-redhat-linux +++ b/config-redhat-linux @@ -1,8 +1,8 @@ nginx_config=/etc/nginx/nginx.conf nginx_cmd=/usr/sbin/nginx -start_cmd=/etc/init.d/nginx start -stop_cmd=/etc/init.d/nginx stop -apply_cmd=/etc/init.d/nginx restart +start_cmd=systemctl start nginx +stop_cmd=systemctl stop nginx +apply_cmd=systemctl restart nginx child_procs=4 php_socket=1 listen_mode=1 diff --git a/module.info b/module.info index eba7715..9de5bc7 100644 --- a/module.info +++ b/module.info @@ -1,4 +1,4 @@ desc=Nginx Webserver category=servers -version=2.25 +version=2.26 readonly=1 diff --git a/virtual_feature.pl b/virtual_feature.pl index bf820d6..25a6c38 100644 --- a/virtual_feature.pl +++ b/virtual_feature.pl @@ -1077,6 +1077,7 @@ sub feature_links my $mode = &feature_get_web_php_mode($d); if ($mode eq "fcgid") { # Link to edit per-version php.ini files + my @dirs = &virtual_server::list_domain_php_directories($d); foreach my $ini (&virtual_server::find_domain_php_ini_files($d)) { push(@rv, { 'mod' => 'phpini', 'desc' => $ini->[0] ? @@ -1085,12 +1086,12 @@ sub feature_links 'page' => 'list_ini.cgi?file='. &urlize($ini->[1]), 'cat' => 'services', - }); + }) if ($dirs[0]->{'version'} == $ini->[0]); } } elsif ($mode eq "fpm") { # Link to edit FPM configs with PHP settings - my $conf = &virtual_server::get_php_fpm_config(); + my $conf = &virtual_server::get_php_fpm_config($d); if ($conf) { my $file = $conf->{'dir'}."/".$d->{'id'}.".conf"; push(@rv, { 'mod' => 'phpini', diff --git a/virtualmin-nginx-lib.pl b/virtualmin-nginx-lib.pl index 273c8c3..13123be 100644 --- a/virtualmin-nginx-lib.pl +++ b/virtualmin-nginx-lib.pl @@ -467,10 +467,10 @@ sub join_words if ($w eq "") { push(@rv, '""'); } - elsif ($w =~ /\s|;|\$/ && $w !~ /"/) { + elsif ($w =~ /\s|;|\$/ && $w !~ /"/ && $w !~ /^\$/) { push(@rv, "\"$w\""); } - elsif ($w =~ /\s|;|\$/) { + elsif ($w =~ /\s|;|\$/ && $w !~ /^\$/) { push(@rv, "'$w'"); } else {