From 347a9751da7bfea5ddda5e16993d16e258aed862 Mon Sep 17 00:00:00 2001 From: earnolmartin Date: Wed, 3 Mar 2021 13:46:33 -0700 Subject: [PATCH] More Info --- ehcp/classapp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ehcp/classapp.php b/ehcp/classapp.php index 8387b20..d450584 100755 --- a/ehcp/classapp.php +++ b/ehcp/classapp.php @@ -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,

There is an error in your $webserver config.

Domain Contents:
" . $domainContents . "
Subdomain Contents:
" . $subdomainContents . "

Passive Domain Contents:
" . $pDomainContents . "
","Error in $webserver Config",false); + $this->infotoadminemail("Hi EHCP Admin,

There is an error in your $webserver config.

" . $out . "

Domain Contents:
" . $domainContents . "
Subdomain Contents:
" . $subdomainContents . "

Passive Domain Contents:
" . $pDomainContents . "
","Error in $webserver Config",false); $success=false; } else { echo "\n $webserver configuration is valid and tested successfully!";