Skip to content

Commit cf716c3

Browse files
authored
Merge pull request #517 from nadezhdafilina/refactor-tomcat
updated tomcat page
2 parents 21acf2b + d0993b9 commit cf716c3

1 file changed

Lines changed: 53 additions & 52 deletions

File tree

  • docs/els-for-applications/apache-tomcat

docs/els-for-applications/apache-tomcat/README.md

Lines changed: 53 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Apache Tomcat<sup style="font-size: 0.5em;">®</sup>
22

3-
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.
44

55
<br>
66

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).
88
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.
99

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.
1111

1212
:::tip
1313
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/).
1414
:::
1515

1616
## Supported Versions
1717

18-
* Apache Tomcat® 8.5.100, 9.0.50, 9.0.75, 9.0.83, 9.0.87, 9.0.90, 9.0.100, 10.1.18
18+
* Apache Tomcat® 8.5.100, 9.0.46, 9.0.50, 9.0.75, 9.0.83, 9.0.87, 9.0.90, 9.0.100, 10.1.18, 10.1.42
1919

2020
## Installation
2121

@@ -32,7 +32,9 @@ Apache Tomcat® is also available for installation as a library for Maven and Gr
3232

3333
<ELSSteps>
3434

35-
1. **Create a `tomcat` group**
35+
1. **Prepare a `tomcat` group**
36+
37+
Create a `tomcat` group:
3638

3739
```text
3840
sudo groupadd tomcat
@@ -46,7 +48,7 @@ Apache Tomcat® is also available for installation as a library for Maven and Gr
4648
sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat
4749
```
4850

49-
3. **Download Apache Tomcat®**
51+
3. **Download the TuxCare build**
5052

5153
Download from TuxCare using your credentials. For example, Apache Tomcat® 8.5.100:
5254

@@ -56,49 +58,50 @@ Apache Tomcat® is also available for installation as a library for Maven and Gr
5658

5759
Replace `USERNAME` and `PASSWORD` with your actual credentials.
5860

59-
4. **Extract the archive**
61+
4. **Create the installation directory and extract the archive**
6062

61-
Create the `/opt/tomcat` directory and extract the archive into it.
63+
* Create the `/opt/tomcat` directory:
6264

6365
```text
6466
sudo mkdir -p /opt/tomcat
67+
```
68+
69+
* Extract the archive into it:
70+
71+
```text
6572
sudo tar -xvzf tomcat-8.5.100-tuxcare.3.tar.gz -C /opt/tomcat --strip-components=1
6673
```
6774

68-
5. **Change to the installation directory**
75+
5. **Configure ownership and permissions**
76+
77+
* Change to the installation directory:
6978

7079
```text
7180
cd /opt/tomcat
7281
```
7382

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:
7784

7885
```text
7986
sudo chgrp -R tomcat /opt/tomcat
8087
```
8188

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:
8590

8691
```text
8792
sudo chmod -R g+r conf
8893
sudo chmod g+x conf
8994
```
9095

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`:
9497

9598
```text
9699
sudo chown -R tomcat webapps/ work/ temp/ logs/
97100
```
98101

99-
9. **Set `CATALINA_HOME`**
102+
6. **Set `CATALINA_HOME` and reload the shell**
100103

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.
102105

103106
```text
104107
export CATALINA_HOME=/opt/tomcat
@@ -108,71 +111,69 @@ Apache Tomcat® is also available for installation as a library for Maven and Gr
108111
If you're using a different shell, you may need to edit `~/.bash_profile` instead.
109112
:::
110113

111-
10. **Reload the shell configuration**
112-
113-
```text
114-
source ~/.bashrc
115-
```
114+
* Reload the shell configuration:
116115

117-
11. **Verify the changes**
116+
```text
117+
source ~/.bashrc
118+
```
118119

119-
```text
120-
echo $CATALINA_HOME
121-
```
120+
* Confirm the variable is set:
122121

123-
12. **Start Apache Tomcat®**
122+
```text
123+
echo $CATALINA_HOME
124+
```
124125

125-
```text
126-
sudo -u tomcat /opt/tomcat/bin/startup.sh
127-
```
126+
7. **Start Apache Tomcat®**
128127

129-
13. **Verify installation**
128+
```text
129+
sudo -u tomcat /opt/tomcat/bin/startup.sh
130+
```
130131

131-
* Go to [http://localhost:8080/](http://localhost:8080/) in your browser. You should see the default Apache Tomcat® homepage.
132+
8. **Verify installation**
132133

133-
* Or check from the terminal:
134+
* Go to [http://localhost:8080/](http://localhost:8080/). You should see the default Apache Tomcat® homepage.
134135

135-
```text
136-
curl http://localhost:8080
137-
```
136+
* Or check from the terminal (successful output is HTML from Tomcat®):
138137

139-
Successful output will be an HTML page from Apache Tomcat®.
138+
```text
139+
curl http://localhost:8080
140+
```
140141

141-
14. **Stop Apache Tomcat®**
142+
9. **Stop Apache Tomcat®**
142143

143-
```text
144-
sudo -u tomcat /opt/tomcat/bin/shutdown.sh
145-
```
144+
```text
145+
sudo -u tomcat /opt/tomcat/bin/shutdown.sh
146+
```
146147

147148
## Windows Installation
148149

149150
1. **Download Apache Tomcat®**
150151

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.
152153

153154
2. **Extract the archive**
154155

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`.
156157

157158
3. **Open Environment Variables**
158159

159-
Right-click *This PC* → *Properties* → *Advanced system settings* → *Environment Variables*
160+
Right-click *This PC**Properties**Advanced system settings**Environment Variables*.
160161

161162
4. **Set `CATALINA_HOME`**
162163

163-
Add a new system variable with the value `C:\Tomcat\apache-tomcat-8.5.100-tuxcare.3` (or your installation path)
164+
Add a new system variable with the value `C:\Tomcat\apache-tomcat-8.5.100-tuxcare.3` (or your installation path).
164165

165166
5. **Start Apache Tomcat®**
166167

167-
Double-click `C:\Tomcat\apache-tomcat-8.5.100-tuxcare.3\bin\startup.bat`
168+
Double-click `C:\Tomcat\apache-tomcat-8.5.100-tuxcare.3\bin\startup.bat`.
168169

169170
6. **Verify installation**
170171

171-
Go to [http://localhost:8080/](http://localhost:8080/) in your browser. You should see the default Apache Tomcat® homepage
172+
Go to [http://localhost:8080/](http://localhost:8080/) in your browser. You should see the default Apache Tomcat® homepage.
172173

173174
7. **Stop Apache Tomcat®**
174175

175-
Double-click `C:\Tomcat\apache-tomcat-8.5.100-tuxcare.3\bin\shutdown.bat`
176+
Double-click `C:\Tomcat\apache-tomcat-8.5.100-tuxcare.3\bin\shutdown.bat`.
176177

177178
## Logs Location
178179

@@ -192,7 +193,7 @@ Check logs for detailed error information:
192193

193194
</ELSSteps>
194195

195-
## What's Next?
196+
## What's next?
196197

197198
<WhatsNext hide-title>
198199

0 commit comments

Comments
 (0)