<<

. 13
( 87 .)



>>

to
LoadModule was_ap20_module
/opt/WebSphere/AppServer/bin/mod_was_ap20_http.so

Next you have to con¬gure WP to use the IBM HTTP Web Server in-
stead of the WebSphere Internal HTTP server, which is only to be used for
development or to show prototypes. You must do the following steps to
con¬gure WP to use IBM HTTP Server:
1. Open a terminal session and go to <wp_root>/config.
2. Edit wps.properties and set WpsHostPort=80.
3. Enter ./WPScon¬g.sh httpserver-con¬g.
4. Wait for the Build Successful message.
5. Restart the Web server and WebSphere Portal.
Next create a service for IBM HTTP Server so that it will start at startup. In
/etc/rc.d/init.d, create a script ¬le called ibmhttp with permissions
755 and insert the following code. The code will support start, stop, restart,
and provide status for the IBM HTTP Web Server.
#!/bin/bash
#
# Startup script for the IBM Http Web Server
#
# chkconfig: - 86 16
# description: IBM HTTP is a World Wide Web server. It is used to
serve \
# HTML files and CGI.
# processname: ibmhttpd
# config: /opt/IBMIHS/conf/httpd.conf
P1: GIG
wy009-03 WY009-BenNatan-v1.cls May 9, 2004 4:37




Installing WebSphere Portal on Linux 55


# Source function library.
. /etc/rc.d/init.d/functions

apachectl=/opt/IBMIHS/bin/apachectl
httpd=/opt/IBMIHS/bin/httpd
RETVAL=0

case "$1" in
start)
echo "Starting IBM HTTP Web Server..."
$apachectl -k start
RETVAL=$?
;;
stop)
echo "Stopping IBM HTTP Web Server..."
$apachectl -k stop
RETVAL=$?
;;
restart)
echo "Restarting IBM HTTP Web Server..."
$apachectl -k restart
RETVAL=$?
;;
status)
status $httpd
;;
*)
echo "Usage: $0 (start |stop|restart|status)"
;;
esac
exit $RETVAL

Next run chkconfig--add ibmhttpd in a terminal session to create
links to all the appropriate run levels. Then go to Server Settings ➪ Services,
refresh the list, check ibmhttp, click Start, and click Save.
Do the following to verify the installation was correct:
1. Make sure the IBM HTTP Server is running.
2. Start the portal server by going to a terminal session, changing the
directory to /opt/WebSphere/AppServer/bin and entering
./startServer.sh WebSphere Portal.
3. Enter in the address bar in your browser the URL
http://<hostname.yourco.com>:,port>/wps/portal,
where hostname.yourco.com is the WebSphere Portal fully quali¬ed
host name and port is the port number in the con¬rmation panel
(usually 9081). Click Go and you should see the WebSphere Portal
Welcome page similar to Figure 2-12.
P1: GIG
wy009-03 WY009-BenNatan-v1.cls May 9, 2004 4:37




56 Chapter 3


Nongraphic Linux Installation
Very often in Linux environments, installations are done on servers through
telnet or the console. WebSphere Portal provides support for these environ-
ments using a text-based interactive installation.
To perform a text-based WebSphere Portal installation, copy the Setup
CD-ROM to a location on your hard drive. Change into the directory and
enter ./install.sh “console (\install.bat “console for Windows). An output
similar to Figure 3-14 should appear.
You can also use a response ¬le. A response ¬le contains the values that
you use during an install and is also used to create a standard WebSphere
Portal installation for multiple machines. The values can also be passed
as parameters. To run an installation program with a response ¬le enter
./install.sh--options response_file where response-¬le is the
name of the response ¬le. For Windows it is \install.bat--iptions
response_file.
A response ¬le can be manually created or automatically during an
install. The information entered during an installation is automatically
saved in <was_root>/PortalServer/Log/responselog.txt. The




Figure 3-14 Console installation screen.
P1: GIG
wy009-03 WY009-BenNatan-v1.cls May 9, 2004 4:37




Installing WebSphere Portal on Linux 57


following is an edited version of the response log created by the Linux
Install. Even though this abridged ¬le is quite lengthy, we are showing it
because the comments describe the syntax and semantics of the installation
commands that are used within a response ¬le. For space reasons, many of
the comments have been edited from this example.
# Response File for WebSphere Portal Version 5.0 Silent Installation
#
# IMPORTANT: ALL VALUES MUST BE ENCLOSED IN DOUBLE QUOTES ("").
#
#
# INSTALL WEBSPHERE APPLICATION SERVER
#
# Description: Indicate whether you want to install a new instance of
WebSphere
# Application Server or use an existing instance.
# Values:
#
# install - Install a new instance of WebSphere Application Server.
# use - Use an existing instance of WebSphere Application Server.
# migrate - Upgrade an existing WebSphere Application Server to the
supported
# level.

-W installWas.choice="install"

#
# WEBSPHERE APPLICATION SERVER INSTALLATION LOCATION
#
# Description: Specify the directory where you want to install WebSphere
# Application Server.
-W was.location="/opt/WebSphere/AppServer"

# INSTALL WEB SERVER (IBM HTTP SERVER)
#
# Description: Indicate whether you want to install a new Web server or
use an
# existing Web server.
#
# Values:
# install - Install IBM HTTP Server
# use - Use an existing Web server

-W installIhs.choice="use"

# IBM HTTP SERVER INSTALLATION LOCATION
#
# Description: Specify the directory where you want to install IBM HTTP
Server.
# Application Server.
P1: GIG
wy009-03 WY009-BenNatan-v1.cls May 9, 2004 4:37




58 Chapter 3


-W ihs.location="/opt/IBMHttpServer"

# HTTP SERVER TYPE
#
# Description: Specify the type of Web server that you want to use with
# WebSphere Portal.
#
# Values:
# ihs - IBM HTTP Server
# apache - Apache(TM) Web Server
# iis - Microsoft(TM) Internet Information Services
# iplanet - iPlanet(TM) Web Server
# domino - Lotus Domino(TM) Web Server



-W httpServerType.choice="ihs"

#=============================================#
# IBM HTTP Server Configuration File Location #
#=============================================#

-W ihsPlugin.file="/opt/IBMIHS/conf/httpd.conf"

# WEBSPHERE APPLICATION SERVER NODE NAME
#
# Description: Specify the node within the WebSphere Application Server
cell to
# which the WebSphere Portal application server will belong.
-W node.name="sandbox1"

#
# WEBSPHERE APPLICATION SERVER HOST NAME
#
# Description: Specify the fully qualified host name or IP address of
# the computer running WebSphere Application Server. For example,
# "hostname.yourco.com".
#

-W node.hostName="sandbox1.rigorconsultants.com"

#
# Begin Installing Services
#



# WEBSPHERE PORTAL INSTALLATION LOCATION
#
# Description: Specify the directory where you want to install WebSphere
Portal.
#
P1: GIG
wy009-03 WY009-BenNatan-v1.cls May 9, 2004 4:37




Installing WebSphere Portal on Linux 59


-W portal.location="/opt/WebSphere/PortalServer"

# WEBSPHERE PORTAL ADMINISTRATIVE USER AND PASSWORD
#
# Enter the user ID and password for the Portal
# administrator

-W portalAdmin.user="wpsadmin"
-W portalAdmin.password="PASSWORD-REMOVED"
# SETUP CD LOCATION
#
# Description: Specify the directory path to the Setup CD.

-W cdSetup.cdPath="/mnt/cdrom"

#
# WEBSPHERE APPLICATION SERVER CD LOCATION
#
# Description: Specify the directory path to the WebSphere Application
Server
# installation images.
-W userInputCDLoc2.cdPath="/mnt/cdrom"

# WEBSPHERE APPLICATION SERVER FIXPACK AND EFIXES CD LOCATION
#
# Description: Specify the directory path to the WebSphere Application
Server
# Fixpack and eFixes installation images.

<<

. 13
( 87 .)



>>