` I tried echo ${SERVERROOT} in sh. I execute this script in desktop. It displays empty. How to get installation path dynamically?
Asked
Active
Viewed 210 times
0
-
Try this: `apxs -q exp_htdocsdir` – Lorinczy Zsigmond Jan 31 '17 at 13:05
-
1If you can find the right apxs, you already know where IBM HTTP Server is. – covener Jan 31 '17 at 13:09
-
I think you post a command for AIX apxs -q . I need for linux also.. In linux how to get Installation directory of IBM HTTP Server dynamically? @LorinczyZsigmond – Suganthan Raj Jan 31 '17 at 13:17
-
Not really, program `apxs` is part of Apache (IBM HTTP server is a re-branded Apache). – Zsigmond Lőrinczy Jan 31 '17 at 17:26
1 Answers
1
Since there could be multiple installations of multiple releases, to reliably find them you'd need to parse (for 8.0 and later) /var/ibm/InstallationManager/installed.xml
Or, sort this out once and set an environment variable or symlink on the system.

covener
- 17,402
- 2
- 31
- 45