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.
Ensure the following:
The first Portal Server installation is up and running.
Access Manager Administrator console is accessible.
Web Server 7.0 is installed in the default directory.
Create a new configuration of Web Server 7.0 on the same node where first portal is up and running.
Name the configuration secondportal and assign the port 8100.
Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.SJSWS7 file to a PortalServer_base/SUNWportal/bin/secondportal.properties file.
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
Create the new portal.
PortalServer_base/SUNWportal/bin/psadmin create-portal -u amadmin -f ps_password -p secondportal --uri /portal -w secondportal.properties
The ps_password file contains the Access Manager password.
Restart the web container.
Verify whether the new portal has been created.
PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password
Create a new domain, seconddomain, on port 8100.
/ApplicationServer_base/appserver/bin/asadmin create-domain --adminport 4850 --adminuser admin --instanceport 8100 seconddomain
Start the new domain.
/ApplicationServer_base/appserver/bin/asadmin start-domain --user admin seconddomain
Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.SJSAS81 file to a PortalServer_base/SUNWportal/bin/secondportal.properties file.
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
Create the new portal.
PortalServer_base/SUNWportal/bin/psadmin create-portal -u amadmin -f ps_password -p -secondportal --uri /portal -w secondportal.properties
Restart the web container.
Verify that the new portal has been created.
PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password
Create a WebLogic domain, seconddomain running on port 7002.
Create a managed server, 7022server, running on port 7022.
Go to the WebLogic_base/user_projects/domains/seconddomain directory and start the managed server.
./startWeblogic.sh
./startManagedWeblogic.sh 7022server
Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.BEAWL8 file to a PortalServer_base/SUNWportal/bin/secondportal.properties file.
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.
Create the new portal.
PortalServer_base/SUNWportal/bin/psadmin create-portal -u amadmin -f ps_password -p secondportal --uri /portal -w secondportal.properties
Restart the web container.
Verify that the new portal has been created.
PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password
Create a WebSphere domain and start the domain.
Copy the PortalServer_base/SUNWportal/template/Webcontainer.properties.IBMWAS5 to a PortalServer_base/SUNWportal/bin/secondportal.properties file.
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.
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
Restart the web container.
Verify that the new portal is created.
PortalServer_base/SUNWportal/bin/psadmin list-portals -u amadmin -f ps_password