More Info
This commit is contained in:
parent
be9029cccb
commit
347a9751da
1 changed files with 2 additions and 1 deletions
|
@ -14635,6 +14635,7 @@ function configtest_reload_webserver(){
|
|||
}
|
||||
|
||||
system(getServiceActionStr("nginx", "configtest"),$ret);
|
||||
$out=shell_exec(getServiceActionStr("nginx", "configtest") . ' 2>&1');
|
||||
|
||||
if($ret<>0){
|
||||
echo "\n $webserver configuration issue detected! There is an error in the config.\n";
|
||||
|
@ -14644,7 +14645,7 @@ function configtest_reload_webserver(){
|
|||
echo "\n " . $subdomainContents . "\n";
|
||||
echo "\n Configuration for passive domains is set to the following:\n";
|
||||
echo "\n " . $pDomainContents . "\n";
|
||||
$this->infotoadminemail("Hi EHCP Admin,<br><br>There is an error in your $webserver config.<br><br>Domain Contents:<br><pre>" . $domainContents . "</pre>Subdomain Contents:<br><pre>" . $subdomainContents . "</pre><br>Passive Domain Contents:<br><pre>" . $pDomainContents . "</pre>","Error in $webserver Config",false);
|
||||
$this->infotoadminemail("Hi EHCP Admin,<br><br>There is an error in your $webserver config.<br><br>" . $out . "<br><br>Domain Contents:<br><pre>" . $domainContents . "</pre>Subdomain Contents:<br><pre>" . $subdomainContents . "</pre><br>Passive Domain Contents:<br><pre>" . $pDomainContents . "</pre>","Error in $webserver Config",false);
|
||||
$success=false;
|
||||
} else {
|
||||
echo "\n $webserver configuration is valid and tested successfully!";
|
||||
|
|
Loading…
Reference in a new issue