5.3. Extracting and Installing Enterprise Web Server
Extraction and installation of Enterprise Web Server differs for the ZIP and Solaris packages. Depending on the resource you have downloaded proceed to either Procedure 5.3, “Extracting and Installing EWS from a ZIP File” or to Procedure 5.4, “Extracting and Installing EWS from Solaris Packages”.
Procedure 5.3. Extracting and Installing EWS from a ZIP File
Follow this procedure to install JBoss Enterprise Web Server from a ZIP file:
- At the shell prompt, become the root user.
- Change to the directory with the ZIP file.
- Run the following command to extract the package to
opt:Substitute the <FILE_NAME> with the name of the downloaded ZIP file.unzip <FILE_NAME> -d /opt
# unzip <FILE_NAME> -d /optCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Issue the following commands to run the post-installation script:The post-installation process creates the tomcat and apache users and groups, and directories:
cd /opt/redhat/ews/etc sh .postinstall
cd /opt/redhat/ews/etc sh .postinstallCopy to Clipboard Copied! Toggle word wrap Toggle overflow - The users and groups
apachewith an ID of 48 andtomcatwith an ID of 91. Theapacherunshttpd, while thetomcatuser runstomcat. - Additional directories the
tomcatgroup has write permissions to:/var/logs/tomcat5/var/logs/tomcat6
Note
The system uses the /opt directory as a default directory for installing JBoss Enterprise Web Server. Make sure the /opt directory is present during installation.
Procedure 5.4. Extracting and Installing EWS from Solaris Packages
Before starting the installation make sure you have root access to the system and that you have downloaded the Solaris package intended for your Solaris version and architecture (refer to Section 5.2, “Downloading Installation Files”).
When installing from a Solaris package, the system installs JBoss Enterprise Web Server automatically in the
/opt/redhat/ews directory. As a part of the installation, the package installer executes custom scripts, which set up the apache and tomcat user accounts.
Follow this procedure to install JBoss Enterprise Web Server from Solaris packages:
- At the shell prompt, become the root user.
- Run the following
gunzipandpkgaddcommands to decompress and install the package:gunzip RHATews-1.0.*
gunzip RHATews-1.0.*Copy to Clipboard Copied! Toggle word wrap Toggle overflow The command returns an output similar to the following:pkgadd -d RHATews-1.0.*
pkgadd -d RHATews-1.0.*Copy to Clipboard Copied! Toggle word wrap Toggle overflow The following packages are available: 1 RHATews JBoss Enterprise Web Server (i386) 1.0.0,REV=2.el5 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]:
The following packages are available: 1 RHATews JBoss Enterprise Web Server (i386) 1.0.0,REV=2.el5 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Type
1or pressenterto confirm the installation. The following information appears:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Type
yand pressenterwhen prompted to confirm the installation. Installation starts and the following appears:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Issue the following command to display the package information:
pkginfo -l RHATews
pkginfo -l RHATewsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note
During installation, the system generates a notice that theJAVA_HOMEenvironment variable is not set. You need to set this variable specifically for the Tomcat you wish to run (refer to Procedure 5.5, “Configuring Tomcat” section). - Run the following command with the respective Tomcat version to execute the
catalina.shscript:/opt/redhat/ews/share/tomcat<VERSION>/bin/catalina.sh
/opt/redhat/ews/share/tomcat<VERSION>/bin/catalina.shCopy to Clipboard Copied! Toggle word wrap Toggle overflow Thecatalina.shscript detects the running JVM version and adds the /opt/redhat/ews/lib path (/opt/redhat/ews/lib64 for 64 bit JVM) to the library path.