Download the file from http://www.sun.com/download/ and save it in a temporary directory.
Change to the directory on your UNIX machine where you copied the file. For example:
Unpack the . gz file by typing gunzip filename. The file name is in the format:
Untar the unzipped file by typing tar -xvf filename. Example:
tar -xvf sun-webserver-6.1.sol.tar
This command unpacks the server files and creates a temporary directory structure under the current directory. Unpacking the file may take a little time. When the files are unpacked, you see a /WebServer and a /lib directory, and the following files:
Untarring the file will cause the permissions of the destination directory to be modified so that applications can no longer write files to it. To avoid this problem, untar the file in a directory where you can modify the permissions. For example, instead of /tmp, use a subdirectory under /tmp, for example, /tmp/SUNWwbinstall.