You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apache®, Apache Tomcat®, are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries.
3
+
Apache® and Apache Tomcat® are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries.
4
4
5
5
<br>
6
6
7
-
TuxCare's Endless Lifecycle Support (ELS) for Apache Tomcat® provides security patches, and selected bug fixes, that are integral to the stable operation of applications running on these versions of Apache Tomcat® core components such as Coyote, Catalina, Jasper, etc. These components have either reached their end of standard support from vendors or have reached End of Life (EOL).
7
+
TuxCare's Endless Lifecycle Support (ELS) for Apache Tomcat® provides security patches and selected bug fixes that are integral to the stable operation of applications running on these versions of Apache Tomcat® core components such as Coyote, Catalina, Jasper, etc. These components have either reached their end of standard support from vendors or have reached End of Life (EOL).
8
8
Our ELS for Apache Tomcat® service is designed to provide solutions for organizations that are not yet ready to migrate to newer versions and that are seeking long-term stability for their legacy Apache Tomcat® applications.
9
9
10
-
This guide outlines the steps needed for Apache Tomcat server setup and configuration.
10
+
This guide outlines the steps needed for Apache Tomcat® server setup and configuration.
11
11
12
12
:::tip
13
13
Apache Tomcat® is also available for installation as a library for Maven and Gradle projects. You can find the corresponding instructions [here](/els-for-libraries/apache-tomcat/).
Download from TuxCare using your credentials. For example, Apache Tomcat® 8.5.100:
52
54
@@ -56,49 +58,50 @@ Apache Tomcat® is also available for installation as a library for Maven and Gr
56
58
57
59
Replace `USERNAME` and `PASSWORD` with your actual credentials.
58
60
59
-
4.**Extract the archive**
61
+
4.**Create the installation directory and extract the archive**
60
62
61
-
Create the `/opt/tomcat` directory and extract the archive into it.
63
+
*Create the `/opt/tomcat` directory:
62
64
63
65
```text
64
66
sudo mkdir -p /opt/tomcat
67
+
```
68
+
69
+
* Extract the archive into it:
70
+
71
+
```text
65
72
sudo tar -xvzf tomcat-8.5.100-tuxcare.3.tar.gz -C /opt/tomcat --strip-components=1
66
73
```
67
74
68
-
5.**Change to the installation directory**
75
+
5.**Configure ownership and permissions**
76
+
77
+
* Change to the installation directory:
69
78
70
79
```text
71
80
cd /opt/tomcat
72
81
```
73
82
74
-
6.**Update ownership**
75
-
76
-
Change ownership of the installation to the `tomcat` group.
83
+
* Change ownership of the installation to the `tomcat` group:
77
84
78
85
```text
79
86
sudo chgrp -R tomcat /opt/tomcat
80
87
```
81
88
82
-
7.**Set `conf` directory permissions**
83
-
84
-
Give the `tomcat` group read access to `conf` and its contents, and execute access to the directory.
89
+
* Give the `tomcat` group read access to `conf` and its contents, and execute access to the `conf` directory:
85
90
86
91
```text
87
92
sudo chmod -R g+r conf
88
93
sudo chmod g+x conf
89
94
```
90
95
91
-
8.**Set write permissions**
92
-
93
-
Give the `tomcat` user write access to `webapps`, `work`, `temp`, and `logs`.
96
+
* Give the `tomcat` user write access to `webapps`, `work`, `temp`, and `logs`:
94
97
95
98
```text
96
99
sudo chown -R tomcat webapps/ work/ temp/ logs/
97
100
```
98
101
99
-
9.**Set `CATALINA_HOME`**
102
+
6.**Set `CATALINA_HOME` and reload the shell**
100
103
101
-
Add the following line at the end of your `~/.bashrc` file, updating the path if needed.
104
+
*Add the following line at the end of your `~/.bashrc` file, updating the path if needed.
102
105
103
106
```text
104
107
export CATALINA_HOME=/opt/tomcat
@@ -108,71 +111,69 @@ Apache Tomcat® is also available for installation as a library for Maven and Gr
108
111
If you're using a different shell, you may need to edit `~/.bash_profile` instead.
109
112
:::
110
113
111
-
10.**Reload the shell configuration**
112
-
113
-
```text
114
-
source ~/.bashrc
115
-
```
114
+
* Reload the shell configuration:
116
115
117
-
11. **Verify the changes**
116
+
```text
117
+
source ~/.bashrc
118
+
```
118
119
119
-
```text
120
-
echo $CATALINA_HOME
121
-
```
120
+
* Confirm the variable is set:
122
121
123
-
12. **Start Apache Tomcat®**
122
+
```text
123
+
echo $CATALINA_HOME
124
+
```
124
125
125
-
```text
126
-
sudo -u tomcat /opt/tomcat/bin/startup.sh
127
-
```
126
+
7.**Start Apache Tomcat®**
128
127
129
-
13. **Verify installation**
128
+
```text
129
+
sudo -u tomcat /opt/tomcat/bin/startup.sh
130
+
```
130
131
131
-
* Go to [http://localhost:8080/](http://localhost:8080/) in your browser. You should see the default Apache Tomcat® homepage.
132
+
8.**Verify installation**
132
133
133
-
* Or check from the terminal:
134
+
* Go to [http://localhost:8080/](http://localhost:8080/). You should see the default Apache Tomcat® homepage.
134
135
135
-
```text
136
-
curl http://localhost:8080
137
-
```
136
+
* Or check from the terminal (successful output is HTML from Tomcat®):
138
137
139
-
Successful output will be an HTML page from Apache Tomcat®.
138
+
```text
139
+
curl http://localhost:8080
140
+
```
140
141
141
-
14. **Stop Apache Tomcat®**
142
+
9.**Stop Apache Tomcat®**
142
143
143
-
```text
144
-
sudo -u tomcat /opt/tomcat/bin/shutdown.sh
145
-
```
144
+
```text
145
+
sudo -u tomcat /opt/tomcat/bin/shutdown.sh
146
+
```
146
147
147
148
## Windows Installation
148
149
149
150
1.**Download Apache Tomcat®**
150
151
151
-
Download the .zip archive from [https://nexus.repo.tuxcare.com/repository/els_java/](https://nexus.repo.tuxcare.com/repository/els_java/) using your credentials
152
+
Download the .zip archive from [https://nexus.repo.tuxcare.com/repository/els_java/](https://nexus.repo.tuxcare.com/repository/els_java/) using your credentials.
152
153
153
154
2.**Extract the archive**
154
155
155
-
Extract, for example, apache-tomcat-8.5.100-tuxcare.3.zip to the installation directory, e.g., `C:\Tomcat`
156
+
Extract, for example, `apache-tomcat-8.5.100-tuxcare.3.zip` to the installation directory, e.g., `C:\Tomcat`.
0 commit comments