This example provides an installation sequence and configuration procedures for allowing Portal Server to run in a web container that is not owned by root.
If your installation plan calls for deploying Portal Server in an instance of Web Server or Application Server not owned by the superuser ( root), you must install Portal Server in a separate installation session from Web Server or Application Server.
If you have configured your Portal Server host to run as non-root user, and subsequently apply a patch, some directories will have their ownership reset to root ownership because the patch is applied as root user.
After successfully applying the patch, reconfigure your host to run as non-root user.
The following high-level tasks are required:
Installing and starting the web container and Access Manager (deselecting Directory Server)
Skip this task if Portal Server will be using a copy of Access Manager that is already running on a remote host.
The following high-level tasks are required:
Making sure that the non-root instance of Web Server or Application Server is installed and configured on the same host where you are installing Portal Server
For Web Server:
If Web Server is not yet installed, use the installer to install Web Server, selecting the Configure Now option. Specify the non-root owner in the Runtime user and Runtime group configuration parameters.
If Web Server is already installed, use the Web Server administrative utilities to create a new web server instance owned by the non-root user.
For Application Server:
If Application Server is not yet installed, use the installer to install Application Server.
Application Server Only Example
After Application Server is installed, use the Application Server administrative utilities to create a new Application Server instance owned by the non-root user.
Making sure the non-root instance of Web Server or Application Server is running, as well as the administrative instance of Web Server or Application Server
Installing Portal Server with the Configure Now option
During Portal Server configuration, doing the following:
Enter the user and group information of the non-root instance owner in the System User and System Group parameters when specifying values on the Common Server Settings page.
Enter information about the non-root instance when specifying values on the Portal Server: Sun Java System Web Server page or the Portal Server Sun Java System Application Server page.
After installation, changing the ownership of the Portal Server directories from root to Userid: UserGroup.
Solaris OS:
chown -R Userid:UserGroup /opt/SUNWps chown -R Userid:UserGroup /etc/opt/SUNWps chown -R Userid:UserGroup /var/opt/SUNWps |
Linux:
chown -R Userid:UserGroup /opt/sun/portal chown -R Userid:UserGroup /etc/opt/sun/portal chown -R Userid:UserGroup /var/opt/sun/portal |
Setting the permissions for the Portal Server directories.
Solaris OS:
chmod 0755 /opt/SUNWps chmod 0755 /etc/opt/SUNWps chmod 0755 /var/opt/SUNWps |
Linux:
chmod 0755 /opt/sun/portal chmod 0755 /etc/opt/sun/portal chmod 0755 /var/opt/sun/portal |
Stopping and then starting Web Server or Application Server.