setup/doc/apache.md

35 lines
579 B
Markdown
Raw 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
```
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>
```