Sun Java System Portal Server 7.1 Configuration Guide

Chapter 7 Creating Multi-Portal Instances

You can create a new Portal Server or an instance of a Portal Server using the same Access Manger and Directory Server that you used to create the first or existing Portal Server instance. Creating a new Portal Server helps you to create Portal Severs for different purposes, for example, for different departments of an organization. Creating a new Portal Server instance enables you to cluster portal instances so that the user can access other instances if one Portal Server instance is down.


Note –

When you create a new portal or Portal Server instance, you need to ensure that Portal Server, Access Manager, and Directory Server on the first installation are running.


This chapter contains the following sections:

Creating a New Portal

After creating a Portal Server installation on a node, you can create another Portal Server installation on the same node or different nodes using the same Access Manager and Directory Server. This new Portal Server installation is empty. You can use the sample portals provided to customize the portal for your specific needs. For example, you could create portals for different departments of an organization but still use the same Access Manager and Directory Server.

This section explains about creating a new portal installation on the same node or different node depending on your first Portal Server installation.

Creating a New Portal on the Same Node

When you create a new portal on the same node where you have the first Portal Server installation, you need to create a web container instance. Then, you need to duplicate the Webcontainer.properties file that is available in the Portal Server installation directory and modify the Webcontainer.properties file to direct to the new web container instance. Finally, you can run the psadmin create-portal sub command to create the new portal.

This section explains how to create a new portal on different web containers, such as Sun Java System Web Server, Sun Java System Application Server, IBM WebSphere, and BEA Web Logic.

ProcedureTo Create a New Portal on a New Configuration of Web Server 7.0

Before You Begin

Ensure the following:

  1. Create a new configuration of Web Server 7.0 on the same node where first portal is up and running.

  2. Name the configuration secondportal and assign the port 8100.

  3. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.SJSWS7 file to a PortalServer_base/SUNWportal/bin/secondportal.properties file.

  4. Edit the following properties in the secondportal.properties file.

    • Host=hostname.domain

    • Port=8100

    • Scheme=http

    • WebContainerType=SJSWS7

    • WebContainerInstallDir=/opt/SUNWwbsvr7

    • WebContainerInstanceName=secondportal

    • WebContainerDomainName=secondportal

    • WebContainerDocRoot=/var/SUNWwbsvr7/docs

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=8989

    • WebContainerAdminScheme=https

    • WebContainerAdminUid=admin

  5. Create the new portal.

    PortalServer_base/SUNWportal/bin/psadmin create-portal -u amadmin -f ps_password -p secondportal --uri /portal -w secondportal.properties


    Note –

    The ps_password file contains the Access Manager password.


  6. Restart the web container.

  7. Verify whether the new portal has been created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

ProcedureTo Create a New Portal on a New Domain of Application Server 8.2

  1. Create a new domain, seconddomain, on port 8100.

    /ApplicationServer_base/appserver/bin/asadmin create-domain --adminport 4850 --adminuser admin --instanceport 8100 seconddomain

  2. Start the new domain.

    /ApplicationServer_base/appserver/bin/asadmin start-domain --user admin seconddomain

  3. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.SJSAS81 file to a PortalServer_base/SUNWportal/bin/secondportal.properties file.

  4. Edit the following properties in the secondportal.properties file.

    • Host=hostname.domain

    • Port=8100

    • Scheme=http

    • WebContainerType=SJSAS81

    • WebContainerInstallDir=/opt/SUNWappserver/appserver

    • WebContainerInstanceName=server

    • WebContainerDomainName=seconddomain

    • WebContainerInstanceDir=/var/opt/SUNWappserver/domains/seconddomain

    • WebContainerDocRoot=/var/opt/SUNWappserver/domains/seconddomain/docroot

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=4850

    • WebContainerAdminScheme=https

    • WebContainerAdminUid=admin

    • WebContainerAdminPassword=ApplicationServer admin password

    • WebContainerMasterPassword=ApplicationServer master password

  5. Create the new portal.

    PortalServer_base/SUNWportal/bin/psadmin create-portal -u amadmin -f ps_password -p -secondportal --uri /portal -w secondportal.properties

  6. Restart the web container.

  7. Verify that the new portal has been created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

ProcedureTo Create a New Portal on a New Domain of BEA WebLogic 8.1 Service Pack 5

  1. Create a WebLogic domain, seconddomain running on port 7002.

  2. Create a managed server, 7022server, running on port 7022.

  3. Go to the WebLogic_base/user_projects/domains/seconddomain directory and start the managed server.

    ./startWeblogic.sh

    ./startManagedWeblogic.sh 7022server

  4. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.BEAWL8 file to a PortalServer_base/SUNWportal/bin/secondportal.properties file.

  5. Edit the following properties in the secondportal.properties file.

    • Host=hostname.domain

    • Port=7022

    • Scheme=http

    • WebContainerType=BEAWL8

    • WebContainerInstallDir=/usr/local/bea/weblogic81

    • WebContainerInstanceName=7022server

    • WebContainerInstanceDir=/usr/local/bea/user_projects/domains/seconddomain

    • WebContainerDocRoot=LEAVE BLANK

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=7002

    • WebContainerAdminScheme=http

    • WebContainerAdminUid=admin userid

    • WebContainerAdminPassword=admin passwd

    • WebContainerJDKDir=/usr/local/bea/jdk142_08

    • WebContainerManagedServer=true

      The value is false, if new portal is installed on the administrator server itself.

  6. Create the new portal.

    PortalServer_base/SUNWportal/bin/psadmin create-portal -u amadmin -f ps_password -p secondportal --uri /portal -w secondportal.properties

  7. Restart the web container.

  8. Verify that the new portal has been created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

ProcedureTo Create a New Portal on a New Domain of WebSphere 5.1.1.6

  1. Create a WebSphere domain and start the domain.

  2. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.IBMWAS5 to a PortalServer_base/SUNWportal/bin/secondportal.properties file.

  3. Edit the following properties in the secondportal.properties file.

    • Host=hostname.domain

    • Port=9080

    • Scheme=http

    • WebContainerType=

    • WebContainerInstallDir=/optM/WebSphere/Express51/AppServer

    • WebContainerInstanceName=server1

    • WebContainerDomainName=LEAVE BLANK

    • WebContainerInstanceDir=LEAVE BLANK

    • WebContainerDocRoot=LEAVE BLANK

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=9090

    • WebContainerAdminScheme=http

    • WebContainerAdminUid=admin userid

    • WebContainerAdminPassword=admin passwd

    • WebContainerJDKDir=/opt/IBM/WebSphere/Express51/AppServer/java

    • WebContainerDeployCell=Usually hostname without FQDN. Please check it in your install.

    • WebContainerDeployNode=Usually hostname without FQDN. Please check it in your install.

  4. Create the new portal.

    PortalServer_base/SUNWportal/bin/psadmin create-portal -u amadmin -f ps_password -p second-portal --uri /portal -w second-portal.properties

  5. Restart the web container.

  6. Verify that the new portal is created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

Creating a New Portal on a Remote Node

This section explains how to create a new portal on a remote node. When you create a new portal on a remote node, you should install Access Manager SDK (AMSDK) and a compatible web container. When you install AMSDK, you need to provide the details of Access Manager and Identity Server that you installed for the Portal Server installation. You need to install Portal Server in the Configure Now or Configure Later mode. All the procedures that are explained in this section use the web container of the first portal installation for the second portal installation on a remote node.


Note –

When you install AMSDK, provide the same encryption key, am password, and LDAP password that are used for Access Manager on Node 1.


After you install AMSDK and the web container, you can use any one of the following options to create a new portal:

ProcedureTo Create a New Portal on Web Server 7.0 in the Configure Now Mode

Before You Begin

Ensure the following:

  1. Run the Java ES installer.

  2. Select Web Server 7.0, Access Manager SDK, and Portal Server and run it in the Configure Now mode.

    In the Installer panels, provide the details about the Directory Server and Access Manager of the first Portal Server installation.

  3. Change the name of the Portal.

    For example, the first portal will be portal1, so change the name of the second portal to portal2.

  4. Complete the installation.

ProcedureTo Create a New Portal on Web Server 7.0 in the Configure Later Mode

Before You Begin

Ensure the following:

  1. Install Access Manager SDK and Web Server 7.0 in the Configure Now mode using the Java ES installer.

    In the installer pages, provide the details about the Directory Server and Access Manager of the first Portal Server installation.

  2. Start the Web Server 7.0 administrator server.

    WebServer_base/admin-server/bin/startserv

  3. Start the Web Server 7.0 instance configuration.

    WebServer_base/https-hostname.domain/bin/startserv

  4. Use the installer to install Portal Server in the Configure Later mode.

  5. Modify the example files accordingly.

    For Web Server 7.0, you can use one of the following example files depending on the requirements:

    • example1.xml

    • example3.xml

    • example4.xml

    • example5.xml

    • example6.xml

    • example7.xml

    • example8.xml

    • example9.xml

    • example13.xml

    • example17.xml

  6. Complete the Portal Server installation.

    PortalServer_base/bin/psconfig --config examplefile

ProcedureTo Create a New Portal on Web Server 7.0 Using the psadmin Command

Before You Begin

Ensure the following:

  1. Install Access Manager SDK and Web Server 7.0 in the Configure Now mode using the Java ES installer.

  2. Start the Web Server 7.0 administrator server.

    WebServer_base/admin-server/bin/startserv

  3. Start the Web Server 7.0 instance.

    WebServer_base/https-hostname.domain/bin/startserv

  4. Install Portal Server in the Configure Now mode using the Java ES installer.

  5. Configure the common agent container and Java DB.

    PortalServer_base/bin/psconfig --config example2.xml

  6. Verify whether the common agent container is working properly.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

  7. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.SJSWS7 file to a PortalServer_base/SUNWportal/bin/secondportal.properties file.

  8. Edit the following properties in the secondportal.properties file.

    • Host=hostname.domain

    • Port=80

    • Scheme=http

    • WebContainerType=SJSWS7

    • WebContainerInstallDir=/opt/SUNWwbsvr7

    • WebContainerInstanceName=hostname.domain

    • WebContainerDomainName=hostname.domain

    • WebContainerDocRoot=/var/opt/SUNWwbsvr7/docs

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=8989

    • WebContainerAdminScheme=https

    • WebContainerAdminUid=admin

    • WebContainerAdminPassword=Webserver7.0 admin password

  9. Create the new portal.

    PortalServer_base/SUNWportal/bin/psadmin create-portal -u amadmin -f ps_password -p secondportal --uri /portal -w secondportal.properties


    Note –

    The ps_password file contains the Access Manager password.


  10. Restart the web container.

  11. Verify that the new portal has been created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

ProcedureTo Create a New Portal on Application Server 8.2 in the Configure Now Mode

Before You Begin

Ensure the following:

  1. Start the Java ES installer and select Application Server 8.2, Access Manager SDK, and Portal Server and install them in the Configure Now mode.

  2. Provide the Access Manager host and the Directory Server host information.

  3. Change the name of the portal.

    For example, first portal will be portal1. Change the second portal name to portal2.

ProcedureTo Create a New Portal on Application Server 8.2 in the Configure Later Mode

Before You Begin

Ensure the following:

  1. Install Access Manager SDK and Application Server 8.2 in the Configure Now mode using the Java ES installer.

  2. Start the Application Server 8.2 administrator server.

    ApplicationServer_base/appserver/bin/asadmin start-domain --user admin_user --password admin_password domain-name

  3. Install Portal Server in the Configure Later mode using the Java ES installer.

  4. Complete the Portal Server installation.

    PortalServer_base/bin/psconfig --config example7.xml

ProcedureTo Create a New Portal on Application Server 8.2 Using the psadmin Command

Before You Begin

Ensure the following:

  1. Install Access Manager SDK and Application Server 8.2 in the Configure Now mode using the Java ES installer.

  2. Start the Application Server 8.2.

    ApplicationServer_base/appserver/bin/asadmin start-domain --user admin_user --password admin_password domain-name

  3. Run the installer and install Portal Server software in the Configure Later mode.

  4. Configure common agent container and Java DB.

    PortalServer_base/bin/psconfig --config example2.xml

  5. Verify that the common agent container is working properly.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

  6. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.SJSWS7 file to a PortalServer_base/SUNWportal/bin/secondportal.properties file.

  7. Edit the following properties in the secondportal.properties file.

    • Host=hostname.domain

    • Port=8080

    • Scheme=http

    • WebContainerType=SJSAS81

    • WebContainerInstallDir=/opt/SUNWappserver/appserver

    • WebContainerInstanceName=server

    • WebContainerDomainName=domain1

    • WebContainerInstanceDir=/var/opt/SUNWappserver/domains/domain1

    • WebContainerDocRoot=/var/opt/SUNWappserver/domains/domain1/docroot

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=4849

    • WebContainerAdminScheme=https

    • WebContainerAdminUid=admin id

    • WebContainerAdminPassword=ApplicationServer admin password

    • WebContainerMasterPassword=ApplicationServer master password

  8. Create the new portal.

    PortalServer_base/SUNWportal/bin/psadmin create-portal -u amadmin -f ps_password -p secondportal --uri /portal -w secondportal.properties

  9. Restart the web container.

  10. Verify that the new portal has been created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

ProcedureTo Create a New Portal on WebLogic 8.1 Service Pack 5 in the Configure Now Mode

Before You Begin

Ensure the following:

  1. Install WebLogic 8.1 Service Pack 5 and create a managed server in a domain.

  2. Start the administrator server and managed server.

  3. Run the installer and select Access Manager SDK and install in the Configure Later mode.

  4. Edit the values in the amsamplesilent file.

    For Solaris, the amsamplesilent file is present in the /AccessManager_base/SUNWam/bin directory. For Linux, it is in the /AccessManager_base/sun/identity directory.

  5. Change the following values in the amsamplesilent file.

    • DEPLOY_LEVEL=4

    • SERVER_NAME=AccessManager host name without FQDN

    • SERVER_HOST=$SERVER_NAME.domain-name

    • SERVER_PORT=AccessManager Server Port

    • ADMIN_PORT=Admin port for the web container on which Access Manager resides

    • DS_HOST=DirectoryServer hostname with FQDN

    • DS_DIRMGRPASSWD=Directory Manager password

    • ROOT_SUFFIX=root suffix of AccessManager

    • ADMINPASSWD=AccessManager_password

    • AMLDAPUSERPASSWD=LDAP_password

    • COOKIE_DOMAIN=.doamin-name

    • AM_ENC_PWD=any string

    • NEW_OWNER=root

    • NEW_GROUP=other

      This value is root for the Solaris 10 release and Linux, and other for the Solaris 9 release.

    • PAM_SERVICE_NAME=other

    • WEB_CONTAINER=WL8

    • BASEDIR=Directory where Access Manager SDK is installed.

      For example, /AccessManager_base/SUNWam

    • CONSOLE_HOST=FQDN of host where Portal needs to be installed

    • CONSOLE_PORT=Port where second Portal needs to be installed, which is the port of the managed server

    • CONSOLE_PROTOCOL=$SERVER_PROTOCOL

    • AM_REALM=disabled

    • WL8_HOME=/usr/local/bea

    • WL8_PROJECT_DIR=user_projects

    • WL8_DOMAIN=mydomain

    • WL8_CONFIG_LOCATION=$WL8_HOME/$WL8_PROJECT_DIR/domains

    • WL8_SERVER= myserver

      Name of the managed server on which second Portal needs to be installed.

    • WL8_INSTANCE=$WL8_HOME/weblogic81

    • WL8_PROTOCOL=$SERVER_PROTOCOL

    • WL8_HOST=FQDN of the node on which second Portal needs to be installed

    • WL8_PORT=Port where the second Portal needs to be installed, which is the port of the managed server

    • WL8_SSLPORT=Weblogic ADMIN_PORT

    • WL8_ADMIN=weblogic

    • WL8_PASSWORD=weblogic admin password

    • WL8_JDK_HOME=$WL8_HOME/jdk142_08

  6. Run the following command:

    AccessManager_base/SUNWam/bin/amconfig -s AccessManager_base/SUNWam/bin/amsamplesilent

    For Linux, the amsamplesilent utility is available in the /AccessManager_base/sun/identity directory.

  7. Run the installer again and install portal in the Configure Now mode.

  8. Change the name of the portal.

    For example, if the first portal is portal1, change name of the second portal to portal2.

ProcedureTo Create a New Portal on WebLogic 8.1 Service Pack 5 in the Configure Later Mode

Before You Begin

Ensure the following:

  1. Install WebLogic 8.1 Service Pack 5 and create a managed server in a domain.

  2. Start the WebLogic administrator server and managed server.

  3. Start the Installer and select Access Manager SDK and install it in the Configure Later mode.

  4. Edit values in the amsamplesilent file.

    For Solaris, the amsamplesilent file is present in the /AccessManager_base/SUNWam/bin directory. For Linux, it is in the /AccessManager_base/sun/identity directory.

  5. Change the following values in the amsamplesilent file.

    • DEPLOY_LEVEL=4

    • SERVER_NAME=AccessManager_host name without FQDN

    • SERVER_HOST=$SERVER_NAME.domain-name

    • SERVER_PORT=AccessManager_server_port

    • ADMIN_PORT=Admin port for the web container on which Access Manager resides

    • DS_HOST=DirectoryServer hostname with FQDN

    • DS_DIRMGRPASSWD=Directory Manager Password

    • ROOT_SUFFIX=root suffix of Access Manager

    • ADMINPASSWD=AccessManager Password

    • AMLDAPUSERPASSWD=LDAP Password

    • COOKIE_DOMAIN=.domain-name

    • AM_ENC_PWD=any string

    • NEW_OWNER=root

    • NEW_GROUP=other

      (This value is root for the Solaris 10 release and Linux, and other for the Solaris 9 release)

    • PAM_SERVICE_NAME=other

    • WEB_CONTAINER=WL8

    • BASEDIR=Directory where Access Manager SDK is installed.

    • CONSOLE_HOST=FQDN of host where Portal needs to be installed

    • CONSOLE_PORT=Port where second Portal needs to be installed, which is the port of the managed server

    • CONSOLE_PROTOCOL=$SERVER_PROTOCOL

    • AM_REALM=disabled

    • WL8_HOME=/usr/local/bea

    • WL8_PROJECT_DIR=user_projects

    • WL8_DOMAIN=mydomain

    • WL8_CONFIG_LOCATION=$WL8_HOME/$WL8_PROJECT_DIR/domains

    • WL8_SERVER=myservername of the managed server on which second Portal needs to be installed

    • WL8_INSTANCE=$WL8_HOME/weblogic81

    • WL8_PROTOCOL=$SERVER_PROTOCOL

    • WL8_HOST=FQDN of the node on which second Portal needs to be installed

    • WL8_PORT=Port where the second Portal needs to be installed, which is the port of the managed server

    • WL8_SSLPORT=Weblogic admin port

    • WL8_ADMIN="weblogic"

    • WL8_PASSWORD=weblogic admin password

    • WL8_JDK_HOME=$WL8_HOME/jdk142_08

  6. Run the following command:

    AccessManager_base/SUNWam/bin/amconfig -s AccessManager_base/SUNWam/bin/amsamplesilent

    For Linux, the amsamplesilent utility is available in the /AccessManager_base/sun/identity directory.

  7. Run the installer and install portal in the Configure Later mode.

  8. Complete the portal Server installation.

    PortalServer_base/bin/psconfig --config example15.xml

ProcedureTo Create a New Portal on WebLogic 8.1 Service Pack 5 Using the psadmin Command

Before You Begin

Ensure the following:

  1. Install Weblogic 8.1 Service Pack 5 and create a managed server.

  2. Start the administrator server and the managed server.

  3. Run the installer. Select Access Manager SDK and install it in the Configure Later mode.

  4. Edit the values in the amsamplesilent file.

    For Solaris, the amsamplesilent file is present in the /AccessManager_base/SUNWam/bin directory. For Linux, it is in the /AccessManager_base/sun/identity directory.

  5. Change the following values in the amsamplesilent file.

    • DEPLOY_LEVEL=4

    • SERVER_NAME=AccessManager_hostname without FQDN

    • SERVER_HOST=$SERVER_NAME.domain-name

    • SERVER_PORT=AccessManager_server_port

    • ADMIN_PORT=Admin port for the web container on which Access Manager resides

    • DS_HOST=DirectoryServer_hostname with FQDN

    • DS_DIRMGRPASSWD=Directory Manager Password

    • ROOT_SUFFIX=root suffix of Access Manager

    • ADMINPASSWD=AccessManager_password

    • AMLDAPUSERPASSWD=LDAP_password

    • COOKIE_DOMAIN=.domain-name

    • AM_ENC_PWD=any string

    • NEW_OWNER=root

    • NEW_GROUP=other

      This value is root for Solaris 10 and Linux, and other for Solaris 9.

    • PAM_SERVICE_NAME=other

    • WEB_CONTAINER=WL8

    • BASEDIR=Directory where Access Manager SDK is installed.

    • CONSOLE_HOST=FQDN of host where Portal needs to be installed

    • CONSOLE_PORT=Port where second Portal needs to be installed, which is the port of the managed server

    • CONSOLE_PROTOCOL=$SERVER_PROTOCOL

    • AM_REALM=disabled

    • WL8_HOME=/usr/local/bea

    • WL8_PROJECT_DIR=user_projects

    • WL8_DOMAIN=mydomain

    • WL8_CONFIG_LOCATION=$WL8_HOME/$WL8_PROJECT_DIR/domains

    • WL8_SERVER=myservername of the managed server on which second Portal needs to be installed

    • WL8_INSTANCE=$WL8_HOME/weblogic81

    • WL8_PROTOCOL=$SERVER_PROTOCOL

    • WL8_HOST=FQDN of the node on which second Portal needs to be installed

    • WL8_PORT=Port where the second Portal needs to be installed, which is the port of the managed server

    • WL8_SSLPORT=Weblogic ADMIN_PORT

    • WL8_ADMIN="weblogic"

    • WL8_PASSWORD=weblogic admin password

    • WL8_JDK_HOME=$WL8_HOME/jdk142_08

  6. Run the following command:

    AccessManager_base/SUNWam/bin/amconfig -s AccessManager_base/SUNWam/bin/amsamplesilent

    For Linux, the amsamplesilent utility is available in the /AccessManager_base/sun/identity directory.

  7. Run the installer and install portal in the Configure Later mode.

  8. Configure common agent container and Java DB.

    PortalServer_base/bin/psconfig --config example2.xml

  9. Verify that common agent container is functioning properly.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

  10. Edit the following properties in the secondportal.properties file.

    • Host=hostname.domain

    • Port=port on which second Portal needs to be installed

    • Scheme=http

    • WebContainerType=BEAWL8

    • WebContainerInstallDir=/usr/local/bea/weblogic81

    • WebContainerInstanceName=name of the managed server on which second Portal needs to be installed

    • WebContainerInstanceDir=/usr/local/bea/user_projects/domains/newdomain

    • WebContainerDocRoot=Leave Blank

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=port of admin server

    • WebContainerAdminScheme=http

    • WebContainerAdminUid=admin userid

    • WebContainerAdminPassword=admin password

    • WebContainerJDKDir=/usr/local/bea/jdk142_08

    • WebContainerManagedServer=true

      false if new portal is installed on administrator server itself.

  11. Create the new portal.

    PortalServer_base/SUNWportal/bin/psadmin create-portal -u amadmin -f ps_password -p secondportal --uri /portal -w secondportal.properties

  12. Restart the web container.

  13. Verify that the new portal is created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

ProcedureTo a Create a New Portal on WebSphere 5.1.1.6 in the Configure Now Mode

Before You Begin

Ensure the following:

  1. Install WebSphere.

  2. Start WebSphere.

  3. Start the Java ES installer and select Access Manager SDK and install it in the Configure Later mode.

  4. Edit the values in the amsamplesilent file

    For Solaris, the amsamplesilent file is present in the /AccessManager_base/SUNWam/bin directory. For Linux, it is in the /AccessManager_base/sun/identity directory.

  5. Change the following values in the amsamplesilent file.

    • DEPLOY_LEVEL=4

    • SERVER_NAME=AccessManager_hostname without FQDN

    • SERVER_HOST=$SERVER_NAME.domain-name

    • SERVER_PORT=AccessManager_server_port

    • ADMIN_PORT=Admin port of the web container on which Access Manager resides

    • DS_HOST=DirectoryServer with FQDN

    • DS_DIRMGRPASSWD=Directory Manager Password

    • ROOT_SUFFIX=root suffix of Access Manager

    • ADMINPASSWD=AccessManager Password

    • AMLDAPUSERPASSWD=LDAP_Password

    • COOKIE_DOMAIN=.domain-name

    • AM_ENC_PWD=any string

    • NEW_OWNER=root

    • NEW_GROUP=other

      (This value is root for Solaris 10 and Linux, and other for Solaris 9.

    • PAM_SERVICE_NAME=other

    • WEB_CONTAINER=WAS5

    • BASEDIR=Directory where Access Manager SDK is installed.

    • CONSOLE_HOST=FQDN of host where Portal needs to be installed

    • CONSOLE_PORT=Port where second Portal needs to be installed, which is the port of the managed server

    • CONSOLE_PROTOCOL=$SERVER_PROTOCOL

    • AM_REALM=disabled

    • WAS51_HOME=/Websphere_base/WebSphere/AppServer

    • WAS51_JDK_HOME=/Websphere_base/WebSphere/AppServer/java

    • WAS51_CELL=Usually hostname without FQDN. Please check it in your install.

    • WAS51_NODE=Usually hostname without FQDN. Please check it in your install.

    • WAS51_INSTANCE=server1

    • WAS51_PROTOCOL=$SERVER_PROTOCOL

    • WAS51_HOST=$SERVER_NAME

    • WAS51_PORT=$SERVER_PORT

    • WAS51_SSLPORT=9081

    • WAS51_ADMIN=admin

    • WAS51_ADMINPORT=ADMIN_PORT

  6. Run the following command:

    AccessManager_base/SUNWam/bin/amconfig -s AccessManager_base/SUNWam/bin/amsamplesilent

    For Linux, the amsamplesilent utility is available in the /AccessManager_base/sun/identity directory.

  7. Start the Java ES installer again and install portal on the Configure Now mode.

  8. Change the name of the portal.

    For example, if the first portal is portal1, then change the name of the new portal to portal2.

ProcedureTo Create a New Portal on WebSphere 5.1.1.6 in the Configure Later Mode

Before You Begin

Ensure the following:

  1. Install Websphere.

  2. Start the Websphere.

  3. Run the installer and select Access Manager SDK, and install in the Configure Later mode.

  4. Edit the values in the amsamplesilent file.

    For Solaris, the amsamplesilent file is present in the /AccessManager_base/SUNWam/bin directory. For Linux, it is in the /AccessManager_base/sun/identity directory.

  5. Change the following values in the amsamplesilent file.

    • DEPLOY_LEVEL=4

    • SERVER_NAME=AccessManager host name without FQDN

    • SERVER_HOST=$SERVER_NAME.domain-name

    • SERVER_PORT=AccessManager server port

    • ADMIN_PORT=Admin port for the web container on which Access Manager resides

    • DS_HOST=DirectoryServer with FQDN

    • DS_DIRMGRPASSWD=DirectoryManager Password

    • ROOT_SUFFIX=root suffix of AccessManager

    • ADMINPASSWD=AccessManager_password

    • AMLDAPUSERPASSWD=LDAP_password

    • COOKIE_DOMAIN=.domain-name

    • AM_ENC_PWD=any string

    • NEW_OWNER=root

    • NEW_GROUP=other

      This value is root for the Solaris 10 release and Linux, and other for the Solaris 9 release.

    • PAM_SERVICE_NAME=other

    • WEB_CONTAINER=WAS5

    • BASEDIR=Directory where Access Manager SDK is installed.

    • CONSOLE_HOST=FQDN of host where Portal needs to be installed

    • CONSOLE_PORT=Port where second Portal needs to be installed, which is the port of the managed server

    • CONSOLE_PROTOCOL=$SERVER_PROTOCOL

    • AM_REALM=disabled

    • WAS51_HOME=/Websphere_base/WebSphere/AppServer

    • WAS51_JDK_HOME=/Websphere_base/WebSphere/AppServer/java

    • WAS51_CELL=Usually hostname without FQDN. Please check it in your install.

    • WAS51_NODE=Usually hostname without FQDN. Please check it in your install.

    • WAS51_INSTANCE=server1

    • WAS51_PROTOCOL=$SERVER_PROTOCOL

    • WAS51_HOST=$SERVER_NAME

    • WAS51_PORT=$SERVER_PORT

    • WAS51_SSLPORT=9081

    • WAS51_ADMIN="admin"

    • WAS51_ADMINPORT=$ADMIN_PORT

  6. Run the following command:

    AccessManager_base/SUNWam/bin/amconfig -s AccessManager_base/SUNWam/bin/amsamplesilent

    For Linux, the amsamplesilent utility is available in the /AccessManager_base/sun/identity directory.

  7. Start the installer again and install portal on the Configure Later mode.

  8. Complete the Portal Server installation.

    PortalServer_base/bin/psconfig --config example16.xml

ProcedureTo Create a New Portal Using the psadmin Command

Before You Begin

Ensure the following:

  1. Install WebSphere.

  2. Start the WebSphere.

  3. Start the installer. Select Access Manager SDK and install in the Configure Later mode.

  4. Edit the values in the amsamplesilent file.

    For Solaris, the amsamplesilent file is present in the /AccessManager_base/SUNWam/bin directory. For Linux, it is in the /AccessManager_base/sun/identity directory.

  5. Change the following values in the amsamplesilent file.

    • DEPLOY_LEVEL=4

    • SERVER_NAME=AccessManager without FQDN

    • SERVER_HOST=$SERVER_NAME.domain-name

    • SERVER_PORT=AccessManager admin password

    • ADMIN_PORT=Admin port for the web container on which Access Manager resides

    • DS_HOST=DirectoryServer hostname with FQDN

    • DS_DIRMGRPASSWD=Directory Manager Password

    • ROOT_SUFFIX=root suffix of Access Manager

    • ADMINPASSWD=AccessManager Password

    • AMLDAPUSERPASSWD=LDAP_password

    • COOKIE_DOMAIN=.domain-name

    • AM_ENC_PWD=any string

    • NEW_OWNER=root

    • NEW_GROUP=other

      This value is root for Solaris 10 and Linux, and other for Solaris 9.

    • PAM_SERVICE_NAME=other

    • WEB_CONTAINER=WAS5

    • BASEDIR=Directory where Access Manager SDK is installed.

    • CONSOLE_HOST=FQDN of host where Portal needs to be installed

    • CONSOLE_PORT=Port where second Portal needs to be installed, which is the port of the managed server

    • CONSOLE_PROTOCOL=$SERVER_PROTOCOL

    • AM_REALM=disabled

    • WAS51_HOME=/Websphere_base/WebSphere/AppServer

    • WAS51_JDK_HOME=/Websphere_base/WebSphere/AppServer/java

    • WAS51_CELL=Usually hostname without FQDN. Please check it in your install.

    • WAS51_NODE=Usually hostname without FQDN. Please check it in your install.

    • WAS51_INSTANCE=server1

    • WAS51_PROTOCOL=$SERVER_PROTOCOL

    • WAS51_HOST=$SERVER_NAME

    • WAS51_PORT=$SERVER_PORT

    • WAS51_SSLPORT=9081

    • WAS51_ADMIN="admin"

    • WAS51_ADMINPORT=$ADMIN_PORT

  6. Run the following command:

    AccessManager_base/SUNWam/bin/amconfig -s AccessManager_base/SUNWam/bin/amsamplesilent

    For Linux, the amsamplesilent utility is available in the /AccessManager_base/sun/identity directory.

  7. Start the installer again and install Portal Server in the Configure Later mode.

  8. Configure Common Agent Container and Java DB.

    PortalServer_base/bin/psconfig --config example2.xml

  9. Verify that common agent container is functioning properly.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

  10. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.IBMWAS5 to PortalServer_base/SUNWportal/bin/secondportal.properties file.

  11. Edit the following properties in the secondportal.properties file.

    • Host=hostname.domain

    • Port=9080

    • Scheme=http

    • WebContainerType=IBMWAS5

    • WebContainerInstallDir=/Websphere_base/IBM/WebSphere/Express51/AppServer

    • WebContainerInstanceName=server1

    • WebContainerDomainName=Leave Blank

    • WebContainerInstanceDir=Leave Blank

    • WebContainerDocRoot=Leave Blank

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=9090

    • WebContainerAdminScheme=http

    • WebContainerAdminUid=admin userid

    • WebContainerAdminPassword=admin password

    • WebContainerJDKDir=/Websphere_base/IBM/WebSphere/Express51/AppServer/java

    • WebContainerDeployCell=Usually hostname without FQDN. Please check it in your install.

    • WebContainerDeployNode=Usually hostname without FQDN. Please check it in your install.

  12. Create the new portal.

    PortalServer_base/SUNWportal/bin/psadmin create-portal -u amadmin -f ps_password -p secondportal --uri /portal -w secondportal.properties

  13. Restart the web container.

  14. Verify that the new portal is created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

Deploying Sample Content to a New Portal

When you create a new portal, it does not have any sample portal deployed in it. However, you can deploy sample portals such as community sample, enterprise sample, and developer sample to the new portal.

ProcedureTo Deploy a Sample Content to a New Portal

  1. Copy the /PortalServer-base/SUNWportal/samples/portals/shared/input.properties.template file to the /var/opt/SUNWportal/tmp/input.properties file.

    In the Linux platform, copy to the /var/opt/sun/portal/tmp/input.properties file.

  2. Edit the input.properties file that you created in the /var/opt/SUNWportal/tmp directory with the following values.

    • ps.config.location=/etc/opt/SUNWportal

    • ps.portal.id=new portal id

    • ps.access.url=access url of the new portal.

    • ps.webapp.uri=access uri of the new portal.

    • ps.profiler.email=admin@domain.com

      Optional. You can leave this value empty.

    • ps.profiler.smtp.host=host.domain

      Optional. You can leave this value empty.

    • search.access.url=http://host.domain:port/search1/search

    • search.id=search1

    • am.admin.dn=uid=amAdmin,ou=People,dc=domain,dc=com

    • default.org.dn=dc=domain,dc=com

  3. Copy the /PortalServer-base/SUNWportal/samples/portals/shared/password.properties.template file to the /var/opt/SUNWportal/tmp/password.properties file.

    In the Linux platform copy the file to the /var/opt/sun/portal/tmp/password.properties directory.

  4. Edit the /var/opt/SUNWportal/tmp/password.properties file and set proper passwords.

    • amadminPassword=%AMADMIN_PASSWORD%

    • amldapuserPassword=%AMLDAPUSER_PASSWORD%

    • userManagementPassword=%USER_MANAGEMENT_PASSWORD%

      You can ignore this value if you are not setting up Communication channels.

  5. Run the following command.

    export JAVA_HOME=/usr/jdk/entsys-j2se

  6. Run the following command to deploy all the portals.

    /usr/sfw/bin/ant -buildfile /PortalServer-base/SUNWportal/samples/portals/build.xml -Dconfig.location /var/opt/SUNWportal/tmp/ -logfile /var/opt/SUNWportal/tmp/log-file.txt

  7. (Optional) Run the following command if you wish to deploy only the developer portal.

    /usr/sfw/bin/ant -buildfile /PortalServer-base/SUNWportal/samples/portals/developer/build.xml -Dconfig.location /var/opt/SUNWportal/tmp/ -logfile /var/opt/SUNWportal/tmp/log-file.txt

  8. (Optional) Run the following command if you wish to deploy only the enterprise portal.

    /usr/sfw/bin/ant -buildfile /PortalServer-base/SUNWportal/samples/portals/enterprise/build.xml -Dconfig.location /var/opt/SUNWportal/tmp/ -logfile /var/opt/SUNWportal/tmp/log-file.txt

  9. (Optional) Run the following command if you wish to deploy only the community portal.

    /usr/sfw/bin/ant -buildfile /PortalServer-base/SUNWportal/samples/portals/community/build.xml -Dconfig.location /var/opt/SUNWportal/tmp/ -logfile /var/opt/SUNWportal/tmp/log-file.txt

  10. (Optional) Run the following command if you wish to deploy only the welcome portal.

    /usr/sfw/bin/ant -buildfile /PortalServer-base/SUNWportal/samples/portals/welcome/build.xml -Dconfig.location /var/opt/SUNWportal/tmp/ -logfile /var/opt/SUNWportal/tmp/log-file.txt

  11. Restart the web container.

Creating a Portal Server Instance

This section explains how to create a new instance of Portal Server. When you install Portal Server, it creates an instance of Portal Server on the default instance of the web container. For example, if you install Portal Server on Sun Java System Web Server, a Portal Server instance is created on the default instance of Web Server that listens to the port 80. You can also create several instances of the web container and create instances of the Portal Server that are already installed. A new instance of Portal Server that you create will have all the portals that are deployed on your first Portal Server.

After creating instances of Portal Server, you can use clustering or load balancing to serve the users effectively. Portal Server instances can be created on a node where you installed Portal Server or on a remote node where you installed a web container, AMSDK, and Portal Server packages.

Creating a Portal on the Same Node

This section explains how to create a Portal Server instance on different web containers on the same node where you installed Portal Server. When you create a Portal Server instance, you can create the instance on a new configuration or a new domain of the web container. You can also create a Portal Server instance on the existing configuration or domain of the web container where you have installed Portal Server.

This section explains the following:

ProcedureTo Create a New Portal Instance on a New Configuration of Web Server 7.0

Before You Begin

Ensure the following:

  1. Create a new configuration of Web Server 7.0 on the same node where Portal Server is installed. Specify the name of the configuration as secondinstance and the port as 8100.

  2. Start the new configuration. Ensure that the Web Server administrator console is running.

  3. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.SJSWS7 to a PortalServer_base/SUNWportal/bin/secondportal.properties file.

  4. Edit the following properties in the secondportal.properties file.

    • Host=hostname.domain

    • Port=8100

    • Scheme=http

    • WebContainerType=SJSWS7

    • WebContainerInstallDir=/WebServer_base/SUNWwbsvr7

    • WebContainerInstanceName=secondinstance

    • WebContainerDomainName=secondinstance

    • WebContainerDocRoot=/var/SUNWwbsvr7/docs

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=8989

    • WebContainerAdminScheme=https

    • WebContainerAdminUid=admin

    • WebContainerAdminPassword=Webserver_admin_password

  5. Create the new portal instance.

    PortalServer_base/SUNWportal/bin/psadmin create-instance -u amadmin -f ps_password -p portal1 -w secondportal.properties

    The ps_password file contains the Access Manager password

  6. Restart the web container.

  7. Verify that the new portal instance has been created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

  8. Access the new Portal Server instance.

    http://hostname.domain-name:8100/portal1

ProcedureTo Create a Portal Instance on a New Domain of Application Server 8.2

Before You Begin

Ensure the following:

  1. Create a domain, seconddomain, and a server instance on the port 8100.

    /ApplicationServer_base/appserver/bin/asadmin create-domain --adminport 4850 --adminuser admin --instance-port 8100 seconddomain

  2. Start the new domain, seconddomain.

  3. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.SJSAS81 file to a PortalServer_base/SUNWportal/bin/secondinstance.properties file.

  4. Edit the following properties in the secondinstance.properties file.

    • Host=hostname.domain

    • Port=8100

    • Scheme=http

    • WebContainerType=SJSAS81

    • WebContainerInstallDir=/ApplicationServer_base/SUNWappserver/appserver

    • WebContainerInstanceName=server

    • WebContainerDomainName=seconddomain

    • WebContainerInstanceDir=/var/SUNWappserver/domains/seconddomain

    • WebContainerDocRoot=/var/SUNWappserver/domains/seconddomain/docroot

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=4850

    • WebContainerAdminScheme=https

    • WebContainerAdminUid=admin

    • WebContainerAdminPassword=Application Server administrator password

    • WebContainerMasterPassword=Application Server master password

  5. Create the new Portal Server instance.

    PortalServer_base/SUNWportal/bin/psadmin create-instance -u amadmin -f ps_password -p portal1 -w secondinstance.properties

  6. Restart the web container.

  7. Verify that the new portal has been created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

  8. Access the new portal instance.

    http://hostname.domain.com:8100/portal

  9. Restart the common agent container.

    On the Solaris platform:


    /usr/share/bin/cacaoadm stop 
    /usr/share/bin/cacaoadm start

    On the Linux platform:


    /opt/sun/cacao/bin/cacaoadm stop
    /opt/sun/cacao/bin/cacaoadm start

ProcedureTo Create a Portal Instance on a New Instance of Application Server on Which a Portal Instance Exists

Before You Begin

Ensure the following:

  1. Create a node agent, nodeagent1, in the same domain in which the first Portal Server instance exists.


    ApplicationServer_base/appserver/bin/asadmin
    create-node-agent --host hostname.domain 
    --port 4849 --user ApplicationServer_admin_user 
    --password ApplicationServer_admin_password nodeagent1
    
  2. Create an instance in the node agent.


    ApplicationServer_base/appserver/bin/asadmin 
    create-instance --host hostname.domain 
    --port 4849 --user ApplicationServer_admin_user
    --password ApplicationServer_admin_password 
    --nodeagent nodeagent1 --systemproperties HTTP_LISTNER_PORT=3870 server2
    
  3. Start the node agent and the instance.


    ApplicationServer_base/appserver/bin/asadmin
    start-node-agent --user admin --password password nodeagent1
    
    ApplicationServer_base/appserver/bin/asadmin
    start-instance --port 4849 --user admin --password password server2
    

    Note –

    When you start the instance after starting the node agent, the start-instance CLI may fail stating that the server instance is already started. In this case, ignore the message. This is due to the server instance being started while starting the node agent. This behavior is controlled by the start-servers-in-startup attribute, located in the domain.xml and if it is set to true, all the server instances which are not running are started during node-agent startup.


  4. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.SJSAS81 to a PortalServer_base/SUNWportal/bin/secondinstance.properties file.

  5. Edit the following properties in the secondinstance.properties file.

    • Host=hostname.domain

    • Port=3870

    • Scheme=http

    • WebContainerType=SJSAS81

    • WebContainerInstallDir=/ApplicationServer_base/SUNWappserver/appserver

    • WebContainerInstanceName=server2

    • WebContainerDomainName=domain1

    • WebContainerInstanceDir=ApplicationServer_base/nodeagents/node1/server2

    • WebContainerDocRoot=ApplicationServer_base/nodeagents/node1/server2/docroot

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=admin port of domain1

    • WebContainerAdminScheme=https

    • WebContainerAdminUid=admin id

    • WebContainerAdminPassword=ApplicationServer admin password

    • WebContainerMasterPassword=ApplicationServer master password

  6. Create the new Portal Server instance.

    PortalServer_base/SUNWportal/bin/psadmin create-instance -u amadmin -f ps_password -p portal1 -w secondinstance.properties

  7. Restart the web container.

  8. Verify that the new portal instance has been created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password.

  9. Access the new Portal Server instance.

    http://hostname.domain.com:3870/portal

ProcedureTo Create a Portal Instance on a Managed Server in a New Domain of WebLogic 8.1 Service Pack 5

Before You Begin

Ensure the following:

  1. Create a WebLogic domain, seconddomain on the port 7002.

  2. Create a managed server, 7022server, on the port 7022.

  3. Go to the WebLogic_base/user_projects/domains/seconddomain directory and run the following scripts.

    ./startWeblogic.sh

    ./startManagedWeblogic.sh 7022server

  4. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.BEAWL8 file to a PortalServer_base/SUNWportal/bin/secondinstance.properties file.

  5. Edit the following properties in the secondportal.properties file.

    • Host=hostname.domain

    • Port=7022

    • Scheme=http

    • WebContainerType=BEAWL8

    • WebContainerInstallDir=/usr/local/bea/weblogic81

    • WebContainerInstanceName=7022server

    • WebContainerInstanceDir=/usr/local/bea/user_projects/domains/seconddomain

    • WebContainerDocRoot=LEAVE BLANK

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=7002

    • WebContainerAdminScheme=http

    • WebContainerAdminUid=admin userid

    • WebContainerAdminPassword=admin passwd

    • WebContainerJDKDir=/usr/local/bea/jdk142_08

    • WebContainerManagedServer=true

      The value is false if new Portal Server is installed on administrator server itself.

  6. Create the new portal instance.

    PortalServer_base/SUNWportal/bin/psadmin create-instance -u amadmin -f ps_password -p portal1 -w secondinstance.properties

  7. Restart the web container.

  8. Verify that the new portal instance has been created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password.

  9. Access the new Portal Server instance.

    http://hostname.domain.com:instance-port/portal

ProcedureTo Create a Portal Instance on a Managed Server Instance of WebLogic 8.1 Service Pack 5 on Which Portal Instance Exists

Before You Begin

Ensure the following:

  1. Create a new WebLogic Server instance, 7022server, on the port 7022.

  2. Go to the WebLogic_base/user_projects/domains/seconddomain directory and run the following scripts:

    ./startWeblogic.sh

    ./startManagedWeblogic.sh 7022server

  3. (Optional) You can also follow these steps to create a new portal instance on WebLogic 8.1 Service Pack 5:

    1. Start the WebLogic Administrator Server.

    2. Start the WebLogic node manager with the IP address of the host as the first argument and the port number on which you want the node manager to run as the second argument.

    3. Add the IP address of the node in the /bea_install/weblogic81/common/nodemanager/nodemanager.hosts file.

    4. Log in to the WebLogic administrator console.

    5. Click Machines.

    6. Click Configure a New Machine.

    7. Specify a machine name and click Create.

    8. Click the Node Manager tab.

    9. Specify the IP Address of the host in the listen address and specify the port on which the Node Manager is running.

    10. Click on Servers in the left pane to create a new managed server.

    11. Click on configure a new server.

    12. Specify the server name and Listen Port of the managed server.

    13. Start the managed server from the console.

  4. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.BEAWL8 file to a PortalServer-base/SUNWportal/bin/secondinstance.properties file.

  5. Edit the following properties in the secondinstance.properties file.

    • Host=hostname.domain

    • Port=7022

    • Scheme=http

    • WebContainerType=BEAWL8

    • WebContainerInstallDir=/usr/local/bea/weblogic81

    • WebContainerInstanceName=7022server

    • WebContainerInstanceDir=/usr/local/bea/user_projects/domains/seconddomain

    • WebContainerDocRoot=LEAVE BLANK

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=7002

    • WebContainerAdminScheme=http

    • WebContainerAdminUid=admin userid

    • WebContainerAdminPassword=admin passwd

    • WebContainerJDKDir=/usr/local/bea/jdk142_08

    • WebContainerManagedServer=true

      The value is false if new Portal is installed on administrator server itself.

  6. Create the new Portal instance.

    PortalServer_base/SUNWportal/bin/psadmin create-instance -u amadmin -f ps_password -p portal1 -w secondinstance.properties


    Note –

    If Portal Server is on the same port as Access Manager, then the Dcom.iplanet.am.serverMode in startWeblogic.sh or startManagedWeblogic.sh should be true, else it should be false. Before restarting the web container, edit the startWeblogic.sh or startManagedWeblogic.sh appropriately.


  7. Restart the web container.

  8. Verify that the new portal instance.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password.

  9. Access the new Portal Server instance.

    http://hostname.domain.com:instance-port/portal

Creating a Portal Server Instance a Remote Node

This section explains how to create a Portal Server instance on a remote node. In this scenario, you have Portal Server installed on a node. You are creating an instance of Portal Server on another node. You need to install AMSDK, web container, and Portal Server packages on the node where you wish to install Portal Server instance. Then, you need to run the psadmin create-instance command to create a new Portal Server instance.


Note –

When you install AMSDK, provide the same encryption key, am password, and LDAP password that are used for Access Manager on Node 1.


This section explains the following:

ProcedureTo Create a New Portal Instance on Web Server 7.0 on a Remote Node

Before You Begin

Ensure the following:

  1. Start the installer and install Access Manager SDK and Web Server 7.0 in the Configure Now mode.

    In the installer panel, provide the details of the Identity Server and Access Manager that you installed in the first node.

  2. Start the Web Server 7.0 administrator server.

    WebServer_base/admin-server/bin/startserv

  3. Start the Web Server 7.0 instance.

    WebServer_base/https-hostname.domain/bin/startserv

  4. Stat the installer and install Portal Server in the Configure Later mode.

  5. Configure the common agent container and Java DB.

    PortalServer_base/bin/psconfig --config example2.xml

  6. Verify that the common agent container is functioning properly.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

  7. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.SJSAS81 file to a PortalServer_base/SUNWportal/bin/secondinstance.properties file.

  8. Edit the following properties in secondinstance.properties file.

    • Host=hostname.domain

    • Port=80

    • Scheme=http

    • WebContainerType=SJSWS7

    • WebContainerInstallDir=/WebServer_base/SUNWwbsvr7

    • WebContainerInstanceName=hostname.domain

    • WebContainerDomainName=hostname.domain

    • WebContainerDocRoot=/var/SUNWwbsvr/docs

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=8989

    • WebContainerAdminScheme=https

    • WebContainerAdminUid=administrator id

    • WebContainerAdminPassword=WebServer administrator password

  9. Create the new portal instance.

    PortalServer_base/SUNWportal/bin/psadmin create-portal -u amadmin -f ps_password -p secondportal -w secondinstance.properties

  10. Restart the web container.

  11. Verify that the new Portal Server instance has been created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

  12. Access the second Portal Server instance.

    http://hostname.domain.com:instance-port/portal

ProcedureTo Create a Portal Instance on WebLogic 8.1 Service Pack 5 on a Remote Node

Before You Begin

Ensure the following:

  1. Install WebLogic 8.1 Service Pack 5 and create a managed server, 7022server on Port 7022.

  2. Go to the WebLogic_base/user_projects/domains/mydomain directory and run the following scripts:

    ./startWeblogic.sh

    ./startManagedWeblogic.sh 7022server

  3. Start the installer, select Access Manager SDK and install it in the Configure Later mode.

  4. Edit the values in the amsamplesilent file.

    For Solaris, the amsamplesilent file is present in the /AccessManager_base/SUNWam/bin directory. For Linux, it is in the /AccessManager_base/sun/identity directory.

  5. Change the following values in the amsamplesilent file.

    • DEPLOY_LEVEL=4

    • SERVER_NAME=AccessManager host name without FQDN

    • SERVER_HOST=$SERVER_NAME.domain.com

    • SERVER_PORT=AccessManager server port

    • ADMIN_PORT=Admin port for the web container on which Access Manager resides

    • DS_HOST=Directory Server HOSTNAME with FQDN

    • DS_DIRMGRPASSWD=Directory Manager Password

    • ROOT_SUFFIX=root suffix of Access Manager

    • ADMINPASSWD=AccessManger Password

    • AMLDAPUSERPASSWD=LDAP password

    • COOKIE_DOMAIN=.domain.com

    • AM_ENC_PWD=any string

    • NEW_OWNER=root

    • NEW_GROUP=other

      This value is root for Solaris 10 and Linux, and other for Solaris 9

    • PAM_SERVICE_NAME=other

    • WEB_CONTAINER=WL8

    • BASEDIR=Directory where Access Manager SDK is installed

      For example, /AccessManager_base/SUNWam

    • CONSOLE_HOST=FQDN of host where Portal needs to be installed

    • CONSOLE_PORT=Port where new Portal needs to be installed, which is the port of the managed server

    • CONSOLE_PROTOCOL=$SERVER_PROTOCOL

    • AM_REALM=disabled

    • WL8_HOME=/usr/local/bea

    • WL8_PROJECT_DIR=user_projects

    • WL8_DOMAIN=mydomain

    • WL8_CONFIG_LOCATION=$WL8_HOME/$WL8_PROJECT_DIR/domains

    • WL8_SERVER=myserver

      Name of the managed server on which second Portal needs to be installed.

    • WL8_INSTANCE=$WL8_HOME/weblogic81

    • WL8_PROTOCOL=$SERVER_PROTOCOL

    • WL8_HOST=FQDN of the node on which second Portal needs to be installed

    • WL8_PORT=Port where the new Portal needs to be installed, which is the port of the managed server

    • WL8_SSLPORT=Weblogic ADMIN_PORT

    • WL8_ADMIN=weblogic

    • WL8_PASSWORD=weblogic admin password

    • WL8_JDK_HOME=$WL8_HOME/jdk142_08

  6. Run the following command:

    AccessManager_base/SUNWam/bin/amconfig -s AccessManager_base/SUNWam/bin/amsamplesilent

    For Linux, the amsamplesilent utility is available in the /AccessManager_base/sun/identity directory.

  7. Run the installer again and install Portal Server in the Configure Later mode.

  8. Configure the common agent container and Java DB.

    PortalServer_base/bin/psconfig --config example2.xml

  9. Verify that the common agent container is working properly.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

  10. Edit the following properties in the secondinstance.properties file.

    • Host=hostname.domain

    • Port=Port on which new Portal needs to be installed

    • Scheme=http

    • WebContainerType=BEAWL8

    • WebContainerInstallDir=/usr/local/bea/weblogic81

    • WebContainerInstanceName=Name of the managed server on which second instance of Portal needs to be installed

    • WebContainerInstanceDir=/usr/local/bea/user_projects/domains/mydomain

    • WebContainerDocRoot=Leave Blank

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=Port of admin server

    • WebContainerAdminScheme=http

    • WebContainerAdminUid=admin id

    • WebContainerAdminPassword=admin password

    • WebContainerJDKDir=/usr/local/bea/jdk142_08

    • WebContainerManagedServer=true

      The value is false, if new Portal is installed on administrator server itself.

  11. Create the new instance of Portal Server.

    PortalServer_base/SUNWportal/bin/psadmin create-instance -u amadmin -f ps_password -p portal1 -w secondinstance.properties


    Note –

    Dcom.iplanet.am.serverMode in startWeblogic.sh or startManagedWeblogic.sh should be set to false.


  12. Restart the web container.

  13. Verify that the new portal instance is created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

  14. Access the second portal instance.

    http://hostname.domain.com:instance-port/portal

ProcedureTo Create a Portal Instance on WebSphere 5.1.1.6 on a Remote Node

Before You Begin

Ensure the following:

  1. Install WebSphere.

  2. Start the WebSphere.

  3. Run the Java ES installer, select Access Manager SDK and install in the Configure Later mode.

  4. Edit the values in the amsamplesilent file.

    For Solaris, the amsamplesilent file is present in the /AccessManager_base/SUNWam/bin directory. For Linux, it is in the /AccessManager_base/sun/identity directory.

  5. Change the following values in the amsamplesilent file:

    • DEPLOY_LEVEL=4

    • SERVER_NAME=AccessManager_hostname without FQDN

    • SERVER_HOST=$SERVER_NAME.domain.com

    • SERVER_PORT=AccessManager_admin_port

    • ADMIN_PORT=Admin port for the web container on which Access Manager resides

    • DS_HOST=DirectoryServer_hostname with FQDN

    • DS_DIRMGRPASSWD=Directory Manager Password

    • ROOT_SUFFIX=root suffix of AccessManager

    • ADMINPASSWD=AccessManager_password

    • AMLDAPUSERPASSWD=LDAP_password

    • COOKIE_DOMAIN=.domain.com

    • AM_ENC_PWD=any string

    • NEW_OWNER=root

    • NEW_GROUP=other

      This value is root for Solaris 10 and Linux, and other for Solaris 9.

    • PAM_SERVICE_NAME=other

    • WEB_CONTAINER=WL8

    • BASEDIR=Directory where Access Manager SDK is installed.

      For example, /Access_Manager_base/SUNWam.

    • CONSOLE_HOST=FQDN of host where Portal needs to be installed

    • CONSOLE_PORT=Port where new Portal needs to be installed, which is the port of the managed server

    • CONSOLE_PROTOCOL=$SERVER_PROTOCOL

    • AM_REALM=disabled

    • WAS51_HOME=/Websphere_base_dir/Websphere/AppServer

    • WAS51_JDK_HOME=/Websphere_base_dir/WebSphere/AppServer/java

    • WAS51_CELL=usually hostname without FQDN. Please check it in your install.

    • WAS51_NODE=usually hostname without FQDN. Please check it in your install.

    • WAS51_INSTANCE=server1

    • WAS51_PROTOCOL=$SERVER_PROTOCOL

    • WAS51_HOST=$SERVER_NAME

    • WAS51_PORT=$SERVER_PORT

    • WAS51_SSLPORT=9081

    • WAS51_ADMIN=admin

    • WAS51_ADMINPORT=$ADMIN_PORT

  6. Run the following command:

    AccessManager_base/SUNWam/bin/amconfig -s AccessManager_base/SUNWam/bin/amsamplesilent

    For Linux, the amsamplesilent utility is available in the /AccessManager_base/sun/identity directory.

  7. Run the installer again and install Portal Server in the Configure Later mode.

  8. Configure the common agent container and Java DB.

    PortalServer_base/bin/psconfig --config example2.xml

  9. Verify that common agent container is working properly.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

  10. Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.IBMWAS5 file to a PortalServer_base/SUNWportal/bin/secondinstance.properties file.

  11. Edit the following properties in the secondinstance.properties file.

    • Host=hostname.domain

    • Port=9080

    • Scheme=http

    • WebContainerType=IBMWAS5

    • WebContainerInstallDir=/Websphere_base/IBM/WebSphere/Express51/AppServer

    • WebContainerInstanceName=server1

    • WebContainerDomainName=Leave Blank

    • WebContainerInstanceDir=Leave Blank

    • WebContainerDocRoot=Leave Blank

    • WebContainerAdminHost=hostname.domain

    • WebContainerAdminPort=9090

    • WebContainerAdminScheme=http

    • WebContainerAdminUid=admin userid

    • WebContainerAdminPassword=admin passwd

    • WebContainerJDKDir=/Websphere_base/IBM/WebSphere/Express51/AppServer/java

    • WebContainerDeployCell=usually hostname without FQDN. Please check it in your install.

    • WebContainerDeployNode=usually hostname without FQDN. Please check it in your install.

  12. Create the new instance of Portal Server.

    PortalServer_base/SUNWportal/bin/psadmin create-instance -u amadmin -f ps_password -p portal1 -w secondinstance.properties

  13. Restart the web container.

  14. Verify that the new Portal Server instance is created.

    PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password

  15. Access the second Portal Server instance.

    http://hostname.domain:instance-port/portal URI

Setting Up Administrator Console and Command-Line Interface on a Remote Host

This section explains how to set up Portal Server administrator console or command-line interface on a remote host. In this scenario, you can install Portal Server on a node and can set up administrator console or command-line interface on another node. On the node where you set up administrator console or command-line interface, you need to install a web container and Portal Server packages. You need to install Portal Server packages in the Configure Later mode.

The psconsole of Portal Server can be installed only on Web Server or Application server. If you install Portal Server on any of the compatible web containers, such as BEA WebLogic or IBM WebSphere, you need to install psconsole on Web Server or Application Server.

ProcedureTo Set Up an Administrator Console on a Remote Host on Web Server 7.0

  1. Install Portal Server 7.1 on Node 1 in the Configure Now mode.

  2. Install Web Server on Node 2 in the Configure Now mode.

  3. Install Portal Server in the Configure Later mode on Node 2.

  4. Create the following directory structure in your current directory.

    mkdir -p WEB-INF/classes/

    mkdir -p WEB-INF/lib/

  5. Create a property file, WEB-INF/classes/pasconnect.properties, with the property value pair pas.host=node1.domain.com.

  6. Copy the cacao_cacao.jar file into the WEB-INF/lib directory.

    The cacao_cacao.jar file is located in the following directories:

    • For Solaris platform: /usr/lib/cacao/lib

    • For Linux platform: /cacao_base/sun/cacao/share/lib

  7. In the psconsole.war file, add the following content.

    jar -uvf /PortalServer_base/SUNWportal/admin/psconsole.war WEB-INF

  8. Deploy the updated psconsole.war file to the Web Server instance.

ProcedureTo Set Up an Administrator Console on a Remote Host on Application Server 8.2

  1. Install Portal Server 7.1 on Node 1 in the Configure Now mode.

  2. Install Application Server 8.2 on Node 2 in the Configure Now mode.

  3. Install Portal Server in the Configure Later mode on Node 2.

  4. Stop the common agent container on node 2.

    /usr/lib/cacao/bin/cacaoadm stop

  5. Run the following command on Node 2:

    /usr/lib/cacao/bin/cacaoadm create-keys -f

  6. Start the common agent container on Node 2 .

    /usr/lib/cacao/bin/cacaoadm start

  7. Create the following directory structure in your current directory.

    mkdir -p WEB-INF/classes/

    mkdir -p WEB-INF/lib/

  8. Create a property file, WEB-INF/classes/pasconnect.properties, with the property value pair pas.host=node1.domain.com.

  9. Copy the cacao_cacao.jar file into the WEB-INF/lib directory.

    The cacao_cacao.jar file is located in the following directories:

    • For Solaris platform: /usr/lib/cacao/lib

    • For Linux platform: /cacao_base/sun/cacao/share/lib

  10. In the psconsole.war file, add the following content.

    jar -uvf /PortalServer_base/SUNWportal/admin/psconsole.war WEB-INF

  11. Deploy the updated psconsole.war file to the Application Server instance.

  12. Add the following in the /domains/domain1/server.policy file.


    grant {
    permission java.util.PropertyPermission "*","read,write";
    permission java.lang.RuntimePermission "writeFileDescriptor";
    permission java.lang.RuntimePermission "createClassLoader";
    permission java.io.FilePermission "\${/}-", "read,write,execute,delete";
    
    // Used by psconsole app
    permission java.security.SecurityPermission "insertProvider.SunSASL";
    permission java.security.SecurityPermission "insertProvider.SunJSSE";
    permission java.lang.RuntimePermission "getProtectionDomain";
    
    };
  13. Restart the Application Server instance.


    Note –

    Step 12 is not required if the security manager is disabled for the Application Server domain where psconsole is deployed. This is achieved by commenting out the following JVM option for security policy in the domain.xml file.


    <jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}
    /config/server.policy</jvm-options>

ProcedureTo Setup Command-Line Interface on a Remote Host on Web Server 7.0 or Application Server 8.2

  1. Install the Portal Server 7.1 on Node 1 in the Configure Now mode.

  2. Install Web Server 7.0 or Application Server 8.2 on Node 2 in the Configure Now mode.

  3. Install Portal Server 7.1 on Node 2 in the Configure Later mode.

  4. In the PortalServer_base/SUNWportal/samples/psconfig/example2.xml file, replace tokens with the node information for Node 2.

  5. Run the following command:

    PortalServer_base/SUNWportal/bin/psconfig --config example2.xml

  6. In the pasconnect.properties file, change the property value as pas.host=node1.domain.com.

    The pasconnect.properties file is located in the following directories:

    • For Solaris platform: /etc/opt/SUNWportal

    • For Linux platform: /etc/SUNWportal