Skip to content

Commit 91ef8c8

Browse files
committed
Validate that the fcgiwrap server is running
1 parent cf72df7 commit 91ef8c8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

lang/en

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,8 @@ feat_clonealias=.. not necessary for alias domains
459459
feat_eclonefind=.. could not find new virtual host named $1 after cloning!
460460
feat_modifyproxy=Modifying proxy destination ..
461461
feat_module=Nginx Webserver (for virtual host)
462+
feat_evalidatefcgiwrapinit=No FCGIwrap server bootup action exists!
463+
feat_evalidatefcgiwraprun=The FCGIwrap server for this domain is not running
462464

463465
fcgid_ecmd=No PHP command found!
464466
fcgid_ecmdexec=PHP command $1 could not be executed : $2

virtual_feature.pl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,19 @@ sub feature_validate
997997
}
998998
}
999999

1000+
# Make sure fcgiwrap server is running
1001+
if ($d->{'nginx_fcgiwrap_port'}) {
1002+
&foreign_require("init");
1003+
my $name = &init_script_fcgiwrap_name($d);
1004+
my $st = &init::action_status($name);
1005+
if (!$st) {
1006+
return $text{'feat_evalidatefcgiwrapinit'};
1007+
}
1008+
elsif (!&init::status_action($name)) {
1009+
return $text{'feat_evalidatefcgiwraprun'};
1010+
}
1011+
}
1012+
10001013
return undef;
10011014
}
10021015

0 commit comments

Comments
 (0)