setup/doc/apache.md

42 lines
775 B
Markdown
Raw Permalink Normal View History

2022-03-03 05:57:43 +01:00
# Setup Apache
* get the latest version of installed packages and refresh the repo cache
```
sudo apt update
```
* install directly from the official repository
```
2022-03-03 06:03:53 +01:00
sudo apt-get install apache2 --no-install-recommends
2022-03-03 05:57:43 +01:00
```
2023-05-05 13:10:19 +02:00
* verify Apache version
```
sudo apache2 -version
```
* check if Apache is running without any issues
```
sudo systemctl status apache2
```
* UFW users can open HTTP (80) and HTTPS (443) ports like this
```
2024-02-22 15:34:00 +01:00
sudo ufw status
2023-05-05 13:10:19 +02:00
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw status
```
* verify Apache is working in a browser
```
hostname -I
http://<server ip>
```
2024-02-22 15:48:24 +01:00
* OPTION: enable web service proxy modules like [this](./apache-proxy.md)
* OPTION: enable SSL like [this](./apache-ssl.md)
2024-02-22 17:20:05 +01:00
* OPTION: set up virtual host [this](./apache-vh.md)