Skip to content

Commit

Permalink
Validate that the fcgiwrap server is running
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Sep 30, 2023
1 parent cf72df7 commit 91ef8c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lang/en
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ feat_clonealias=.. not necessary for alias domains
feat_eclonefind=.. could not find new virtual host named $1 after cloning!
feat_modifyproxy=Modifying proxy destination ..
feat_module=Nginx Webserver (for virtual host)
feat_evalidatefcgiwrapinit=No FCGIwrap server bootup action exists!
feat_evalidatefcgiwraprun=The FCGIwrap server for this domain is not running

fcgid_ecmd=No PHP command found!
fcgid_ecmdexec=PHP command $1 could not be executed : $2
Expand Down
13 changes: 13 additions & 0 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,19 @@ sub feature_validate
}
}

# Make sure fcgiwrap server is running
if ($d->{'nginx_fcgiwrap_port'}) {
&foreign_require("init");
my $name = &init_script_fcgiwrap_name($d);
my $st = &init::action_status($name);
if (!$st) {
return $text{'feat_evalidatefcgiwrapinit'};
}
elsif (!&init::status_action($name)) {
return $text{'feat_evalidatefcgiwraprun'};
}
}

return undef;
}

Expand Down

0 comments on commit 91ef8c8

Please sign in to comment.