-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -262,3 +262,4 @@ letsencrypt_retry=1 | |
bind_spf=yes | ||
bind_spfall=1 | ||
web_http2=0 | ||
cgimode=suexec | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jcameron
Author
Collaborator
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -261,3 +261,4 @@ web_http2=0 | |
php_fpm_cmd=php-fpm | ||
php_fpm_init=php-fpm | ||
php_fpm_pool=/usr/local/etc/php-fpm.d | ||
cgimode=suexec |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,9 +301,10 @@ sub module_install | |
&save_module_config(); | ||
} | ||
|
||
# If the default template uses a PHP mode that isn't supported, change it | ||
# If the default template uses a PHP or CGI mode that isn't supported, change it | ||
my $mmap = &php_mode_numbers_map(); | ||
my @supp = &supported_php_modes(); | ||
my @cgimodes = &has_cgi_support(); | ||
foreach my $tmpl (grep { $_->{'standard'} } &list_templates()) { | ||
my %cannums = map { $mmap->{$_}, 1 } @supp; | ||
if ($tmpl->{'web_php_suexec'} ne '' && | ||
|
@@ -314,6 +315,11 @@ sub module_install | |
$tmpl->{'web_php_suexec'} = $mmap->{$goodsupp[0]}; | ||
&save_template($tmpl); | ||
} | ||
if ($tmpl->{'web_cgimode'} && | ||
&indexof($tmpl->{'web_cgimode'}, @cgimodes) < 0) { | ||
$tmpl->{'web_cgimode'} = $cgimodes[0]; | ||
This comment has been minimized.
Sorry, something went wrong.
iliajie
Collaborator
|
||
&save_template($tmpl); | ||
} | ||
} | ||
|
||
# Cache current PHP modes and error log files | ||
|
I think it should be safer to use FCGIWrap as default, as suEXEC not available in RHEL and derivatives.