Sun Java System Portal Server 7.1 Configuration Guide

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