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.
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.SJSAS91 file to a PortalServer_base/SUNWportal/bin/secondportal.properties file.
Edit the following properties in the secondportal.properties file.
Host=myhostname.mydomain
Port=8080
Scheme=http
WebContainerType=SJSAS91
WebContainerInstallDir=/opt/SUNWappserver/appserver
WebContainerInstanceName=server
WebContainerDomainName=seconddomain
WebContainerInstanceDir=/opt/SUNWappserver/appserver/domains/seconddomain
WebContainerDocRoot=/opt/SUNWappserver/appserver/domains/seconddomain/docroot
WebContainerAdminHost=myhostname.mydomain
WebContainerAdminPort=4850
WebContainerAdminScheme=https
WebContainerAdminUid=admin
WebContainerAdminPassword=Application Server admin password
WebContainerMasterPassword=Application Server master password
ClusterID=cluster id
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