feat: replace apache2 with nginx + php-fpm

BREAKING CHANGE: The `apache2` webserver has been replaced with `nginx` and `php-fpm`, be sure to uninstall `apache2` and clean related configuration files from your system before upgrading.
This commit is contained in:
jo 2022-07-06 16:23:52 +02:00 committed by Kyle Robbertze
parent 2f205544c2
commit ec45717ccf
8 changed files with 114 additions and 48 deletions

View file

@ -52,7 +52,7 @@ sudo systemctl restart libretime.target
Verify that all the services are still running after the install process:
```bash
sudo systemctl --all --plain | egrep 'libretime|apache2'
sudo systemctl --all --plain | egrep 'libretime|nginx|php.*-fpm'
```
Verify for any error in the logs after the install process:

View file

@ -52,4 +52,4 @@ For some LibreTime services, you can set a higher log level using the `LIBRETIME
sudo -u libretime libretime-analyzer --config /etc/libretime/config.yml --log-level debug
```
The `/var/log/apache2/libretime.error.log` file contains logs from the web server.
The `/var/log/nginx/libretime.error.log` file contains logs from the web server.

View file

@ -50,18 +50,18 @@ sudo rm -f /{etc,usr/lib}/systemd/system/airtime*
sudo rm -f /{etc,usr/lib}/systemd/system/libretime*
```
Remove apache2 configuration files:
Remove nginx configuration files:
```bash
sudo rm -f /etc/apache2/sites-{available,enabled}/airtime*
sudo rm -f /etc/apache2/sites-{available,enabled}/libretime*
sudo rm -f /etc/nginx/sites-{available,enabled}/airtime*
sudo rm -f /etc/nginx/sites-{available,enabled}/libretime*
```
Remove php configuration files:
Remove php-fpm configuration files:
```bash
sudo rm -f /etc/php/*/apache2/conf.d/airtime*
sudo rm -f /etc/php/*/apache2/conf.d/libretime*
sudo rm -f /etc/php/*/fpm/pool.d/airtime*
sudo rm -f /etc/php/*/fpm/pool.d/libretime*
```
Remove logrotate configuration files: