...
Installing on Unix / Linux
Some instructions are given here for installing tomcat, and making it run as a service. You should ensure that any installation meets with your company standards.
Tomcat login scripts
Install the login scripts in Appendix A Unix Scripts into the tomcat user home directory. These scripts are correct as of Tomcat 8.0 but the PhixFlow consultant should confirm that no changes are needed because of environment differences or because of different version of Tomcat.
...
Modify $TOMCAT/conf/server.xml to specify the port that PhixFlow will use (usually 8081). Find the following lines and change as needed:
Code Block | ||
---|---|---|
| ||
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --> |
...
<Connector
<Connector port="8081" |
...
maxHttpHeaderSize="8192" … |
Remember to enable this port in the server’s firewall (if enabled).
...
Modify $TOMCAT/conf/web.xml to change the Tomcat session timeout period from its default value (30 mins). Find the following lines and change as needed:
Code Block | ||
---|---|---|
| ||
<session-config> |
...
<session- |
...
timeout>1440</session-timeout> |
...
</session-config> |
Update <session-timeout> to the value you need, e.g. to 1440 (minutes i.e. 1 day).
...
To set JVM options:
Windows |
| ||||
Unix/Linux | If you have installed the scripts in Appendix A, these option will already be set however for clarity, these options are defined in the JAVA_OPTS environment variable set in the tomcat user’s shell startup file (e.g. .profile / .bash_profile / .cshrc in the user’s home directory – the actual startup file is determined by the user’s default shell settings).
|
Database JDBC Drivers
The drivers needed to connect to PhixFlow’s own database are now included in the release and do not have to be downloaded separately.
...
Windows | Run the Tomcat Monitor. Click on Right mouse menu -> Start Service | ||||||
Unix | Login to the unix server as user tomcat.
|
...
Make tomcat run as a service
Windows
- Run the Tomcat Monitor.
- Right click on the Apache Tomcat icon in the system tray and select Configure …
- On the ‘General’ tab:
- Set Startup Type to Automatic.
Unix/ Linux
Info |
---|
Note, in particular, that these instructions guide you to setting up tomcat to run as a service under the classic init mechanism on unix/ linux (System V) since this will be available on all platforms, but you should consider using Upstart, a more modern init mechanism that will be available on most modern unix/ linux distributions. Installation using upstart is widely covered on the web. Further, at some versions of tomcat, on certain unix/ linux distribution versions, tomcat can be installed with simply package commands - you can find these from a web search. |
As the root user, install the “tomcat” script listed in in Appendix A and create a softlink to it from the appropriate run-level directory. The actual run-level directories are specific to the particular unix variant.