...
The downloaded Confluence package is powered by Tomcat. You can specify Tomcat use a specific java directory by .
modifying the Confluence /opt/confluence/setenv.sh file and test with version.sh
Follow the section of Portable Tomcat 6.x & Instances described in the table below. Also make sure to adjust the file paths as shown,
Section | Tomcat | Confluence |
---|---|---|
Run Tomcat with a Specific Java Version Using setenv.sh | opt/apache/tomcat.1/bin/setenv.sh |
...
/opt/confluence/bin/ |
...
setenv.sh | ||
opt/apache/tomcat.1/bin/version.sh | /opt/confluence/bin/bin/version.sh |
Configure Confluence to Only Start and Stop with ServerAdmin
To prevent read errors and for security purposes we want Confluence to only run as with the operating account serveradmin.
Using the account serveradmin, modify /opt/confluence/bin/startup.sh and /opt/confluence/bin/shutdown.sh as instructed in "Only Allow serveradmin to Run Tomcat" at Portable Tomcat 6.x & Instances.
Info |
---|
Confluence 4.x also introduced their own script files which to also perform this check when running start-confluence.sh and stop-confluence.sh. However, admins can still accidentally run startup.sh or shutdown.sh. |
Follow the section of Portable Tomcat 6.x & Instances described in the table below. Also make sure to adjust the file paths as shown,
Section | Tomcat | Confluence |
---|---|---|
Only Allow serveradmin to Run Tomcat | /opt/apache/tomcat.1/bin/startup.sh | /opt/confluence/bin/startup.sh |
/opt/apache/tomcat.1/bin/shutdown.sh | /opt/confluence/bin/shutdown.sh |
Modify user.sh
As of Confluence 4.x, new start up scripts added,
...