mt created page: docs:hosting authored by mt's avatar mt
......@@ -243,6 +243,16 @@ env[TMPDIR] = /tmp
env[TEMP] = /tmp
```
PHP neustarten kann man mit
# systemctl restart php7.1-fpm
Status mit letzten Logmeldungen:
# systemctl status php7.1-fpm
Jetzt kann man im nginx via FastCGI PHP nutzen:
```
......@@ -257,8 +267,58 @@ location ^~ /~newuser {
}
```
# Python/Ruby/...
# Python/Ruby/CGI etc.pp...
Klappt vermutlich mit uWSGI. Hier ein [Beispiel](http://flask.pocoo.org/docs/0.12/deploying/uwsgi/)
uWSGI Apps kann man in `/etc/uwsgi/apps-available/` konfigurieren und nach `/etc/uwsgi/apps-enabled/` symlinken.
Ein Beispiel für eine Ruby App:
```ini
[uwsgi]
plugins = rack
uid = 33
gid = 33
rack = /var/www/redmine/config.ru
post-buffering = 4096
env = RAILS_ENV=production
processes = 4
disable-logging = true
ignore-sigpipe = true
ignore-write-errors = true
logto = /dev/null
``
Python mit Django und `virtuelenv`:
```ini
[uwsgi]
plugins = python26
pythonpath = /home/user/app-env
home = /home/user/app-env
mount = /appurl=/home/user/app/deploy/app.wsgi
virtualenv = /home/user/app-env
processes = 4
```
Mailman via CGI:
```
[uwsgi]
plugins = cgi
threads = 5
cgi = /mailman=/usr/lib/cgi-bin/mailman/
cgi-index = listinfo
disable-logging
ignore-sigpipe
ignore-write-errors
buffer-size = 8192
chdir = /
uid = nobody
gid = list
```
[uwsgi Dokumentation](https://uwsgi-docs.readthedocs.io/en/latest/)
...