Walter Lee

How to tell web server version ?

Wednesday Aug 13, 2008

In 6.1 or 7.0  web server,


1. if this is a standalone installation,


then you can run

apple:/export/home/iws6.1sp9> find . -name webservd
./bin/https/bin/webservd
^C
apple:/export/home/iws6.1sp9> ./bin/https/bin/webservd -v
Sun Microsystems, Inc.
Sun ONE Web Server 6.1SP9 B01/11/2008 14:24


Or, you can always run,


 apple:/export/home/iws6.1sp9/https-apple.asia.sun.com> ./start -version
Sun Microsystems, Inc.
Sun ONE Web Server 6.1SP9 B01/11/2008 14:24


apple:/export/home/iws7.0u3/https-apple.asia.sun.com/bin> ./startserv --version
Sun Microsystems, Inc.
Sun Java System Web Server 7.0U3 B06/16/2008 12:00


2. if this is a JES installation, then you can run


 apple:/export/home/opt/SUNWwbsvr-JES3> https-apple.asia.sun.com/start -version
Sun Microsystems, Inc.
Sun ONE Web Server 6.1SP9 B01/11/2008 14:24


You will get following error if you run #1 above in a JES installation,


apple:/export/home/opt/SUNWwbsvr-JES3> find . -name webservd
./bin/https/bin/webservd
^C
apple:/export/home/opt/SUNWwbsvr-JES3> ./bin/https/bin/webservd -v
ld.so.1: webservd: fatal: libldap50.so: open failed: No such file or directory
Killed



3. Summary:


In 6.1,  "start -version" will print out web server version.


In 7.0, "startserv --version" will print out web server version.



[0] Comments
Like this post? del.icio.us | furl | slashdot | technorati | digg