The Citrix XTE Service will not start after installing the Secure Gateway in a XenApp or Citrix Access Essentials environment.
The event viewer shows:
Event ID 3299: “Syntax error on line 3 of <full path to httpd.conf>.”
Attempting to run the XTE executable manually results in an error message:
“Syntax error on line 3 of <full path to httpd.conf>: ServerRoot must be a valid directory.”
To correct the registry path so that the XTE service starts automatically, complete the following procedure:
Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.
Find the correct path using “ImagePath” key in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CitrixXTEServer. It contains a value as:
"C:\Program Files\Citrix\XTE\bin\XTE.exe" -k runservice -n "CitrixXTEServer" -f "conf/httpd.conf"
Copy that value to the registry key “ServerRootPath” in HKEY_LOCAL_MACHINE\Software\Citrix\XTEConfig, overwriting the path to Secure Gateway.
on x64 bit Operating System HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\XTEConfig
Modify the string value in “ServerRootPath” in the following manner:
Remove the leading quote
Remove everything after and including \bin\XTE.exe
The resulting string will be similar to C:\Program Files\Citrix\XTE.
Restart the computer.
The path must not contain quotes or trailing backslash ( \ ) character.
The registry key “ServerRootPath” in HKEY_LOCAL_MACHINE\Software\Citrix\XTEConfig, which needs to contain the path to XTE, has been overwritten as a result of the Secure Gateway installation.
The registry must contain C:\Program Files\Citrix\XTE as path. Instead it contains C:\Program Files\Citrix\Secure Gateway\ as path.