Installing DivePort
DivePort is a web client that employs portlet web technology. A DivePort portal consists of pages that contain portlet instances. DivePort enables you to create and configure pages and their portlet instances. DivePort typically resides on Apache Tomcat, a web application server, which you can access by using a web browser.
Prerequisite: The successful installation of Apache Tomcat and DiveLine. The DivePort installation files are in the web-tools.zip file which comes bundled with the Diver Platform Server package.
To extract and copy the DivePort installation files:
-
If Tomcat is running, stop it.
-
Navigate to the /di/platform directory .
cd /di/platform
-
Verify that the web-tools.zip file is present.
ls
-
Unzip web-tools.zip file.
sudo unzip web-tools.zip
-
View the unpackaged web-tools.zip file in the directory.
ls
-
Unzip diveport.zip.
sudo unzip diveport.zip
-
Navigate to the diveport directory.
cd diveport
-
View the unpackaged diveport.zip file.
ls
The unzipped DivePort package creates the following directories and file in the diveport directory:
- /appdir
- /datadir
- context-file-template.xml
-
Copy the appdir directory to the /di/platform/webapps directory and rename it to assign a DivePort portal name (for example, mydiveport).
sudo cp -r appdir /di/platform/webapps/mydiveport
-
Copy the datadir directory to the /di/platform/webdata directory and rename it to the same DivePort portal name (for example, mydiveport).
sudo cp -r datadir /di/platform/webdata/mydiveport
-
Verify that the files were renamed and copied.
- ls /di/platform/webapps
- ls /di/platform/webdata
-
Navigate to the /etc/init.d directory.
cd /etc/init.d
-
Determine the IP address of your Linux machine
ifconfig
-
Note the IP address (inet addr) that displays.
For example, 192.168.179.140 is the IP address that displays in the figure.
-
Specify whether you want the DivePort name to display in the URL to your portal (for example, https://www.<your server>.com/<DivePort name>).
(Recommended) To display <DivePort name> in the URL:
-
Navigate to the /di/platform/diveport directory.
cd /di/platform/diveport
-
Create a copy of the context-file-template.xml file and rename it to the name of your DivePort portal file (for example, mydiveport.xml).
sudo cp -i context-file-template.xml mydiveport.xml
-
Verifythe permissions of the <DivePort name>.xml file.
ls -l mydiveport.xml
The permissions display. If the permissions are -rwxrwxrwx, you can open and modify the directory and its contents. Proceed to step 15 d.
If you do not have permission:
-
Enable the execute permission.
sudo chmod a+rwx mydiveport.xml
-
Verify that the permissions have changed.
ls -l mydiveport.xml
The permissions display as -rwxrwxrwx.
-
-
Open the <DivePort name>.xml file with a text editor, such as gedit.
gedit mydiveport.xml
The file opens in the text editor.
Copy<Context docBase="Enter DivePort War File Path Here" unpackWAR="false"
sessionCookiePathUsesTrailingSlash="false">
<!-- uncomment this and set the following parameters:
<Parameter name="dataroot" value="Enter DivePort WebData Directory Here" />
<Parameter name="approot" value="Enter DivePort WebApp Directory Here" />
<Parameter name="diveline.server" value="Enter DiveLine Server String Here" />
<Parameter name="diveline.admin-username" value="Enter Admin Username Here" />
-->
<!-- for single-sign-on with a CGI-mode installation, uncomment and set these parameters:
<Parameter name="diveline-web-auth-start-url" value="Enter DLCGI DivePort URL Here" />
<Parameter name="diveline.web-auth-finish-url" value="Enter Logoff URL Here" />
-->
<!-- If you need to permit HTTP connections:
<Parameter name="require-confidentiality" value="false" />
-->
<!-- For Tomcat 8.5.42+ or 9.0.12+, the following is recommended:
<CookieProcessor sameSiteCookies="lax" />
-->
</Context> -
Edit the <DivePort name>.xml file to include the following changes:
-
"Enter DivePort War File Path Here" – The path to the diveport.war file
For example:
/di/platform/webapps/mydiveport/diveport.war
-
"Enter DivePort Webdata Directory Here" – The path to the webdata directory (dataroot)
For example:
/di/platform/webdata/mydiveport
-
"Enter DivePort WebApp Directory Here" – The path to the webapps directory (approot)
For example:
/di/platform/webapps/mydiveport
-
"Enter DiveLine Server String Here" – The DiveLine server name
For example:
ubuntu:2131
-
"Enter Admin Username Here" – The DiveLine administrator name, which is defined in Creating an Administrator and a Test User.
For example:
admin
-
-
Remove uncomment this and set the following parameters: and the surrounding comment markers (<!-- and -->).
For example:
Copy<Context docBase="/di/platform/webapps/mydiveport/diveport.war" unpackWAR="false" sessionCookiePathUsesTrailingSlash="false">
<Parameter name="dataroot" value="/di/platform/webdata/mydiveport" />
<Parameter name="approot" value="/di/platform/webapps/mydiveport" />
<Parameter name="diveline.server" value="ubuntu:2131" />
<Parameter name="diveline.admin-username" value="admin" />
(Optional) for single-sign-on with a CGI-mode installation, set these parameters:
<Parameter name="diveline.web-auth-start-url" value="Enter DLCGI DivePort URL Here"/>
<Parameter name="diveline.web-auth-finish-url" value="Enter Logoff URL Here"/>
(Optional) If you need to permit HTTP connections:
<Parameter name="require-confidentiality" value="false" />
<CookieProcessor sameSiteCookies="lax" />
</Context>IMPORTANT: If you do not require HTTP connections, comment out the require-confidentiality parameter. If you permit HTTP connections, you are allowing unsecured communications with DiveLine.
- Save your changes and close the file.
-
-
Move the file that you just created (either mydiveport.xml or ROOT.xml) to the Tomcat localhost directory.
sudo mv <file name>.xml /etc/tomcat<version-number>/Catalina/localhost
-
Navigate to the /etc directory.
cd /etc
-
Change the ownership for the tomcat<version> directory to the Tomcat user, identified in Installing Apache Tomcat.
sudo chown -R tomcat<version-number> ./tomcat<version-number>
-
Change to the directory holding the atlcfg.cfg file.
cd /di/platform/dl-dataroot/config
-
Check the permissions of the atlcfg.cfg file.
ls -l atlcfg.cfg
The permissions display. If the permissions are -rwxrwxrwx, you can open and modify the directory and its contents. If you do not have permission:
-
Enable the execute permission.
sudo chmod a+rwx atlcfg.cfg
-
Verify that the permissions have changed.
ls -l atlcfg.cfg
The permissions display as -rwxrwxrwx.
-
-
Open the file with a text editor, such as gedit.
gedit atlcfg.cfg
-
Locate the ACFG object, and insert the gateway_ips attribute with IP address information.
For example:
gateway_ips={"192.168.179.140","127.0.0.1"}
Here is an example of the attribute in the atlcfg.cfg file:
-
Optionally, if not already configured, add an administrative user to the atlcfg.cfg file.
NOTE: Remember to enter a comma at the end of all lines within the ACFG object except the last one.
- Save and close the file.
-
Start Tomcat.
NOTE: The server IP address can change when you restart the server. The server IP address shown in examples might change in different topics due to restarting the test server.