From a3211d897eebc21cecc707a0fe371b2cdc6633f4 Mon Sep 17 00:00:00 2001 From: qorg11 Date: Sat, 14 Nov 2020 23:30:49 +0100 Subject: [PATCH] add fcgiwrap to the installation --- doc/lainsafe.1 | 6 +++++- doc/lainsafe.md | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/doc/lainsafe.1 b/doc/lainsafe.1 index 02a74f5..96d0a8c 100644 --- a/doc/lainsafe.1 +++ b/doc/lainsafe.1 @@ -14,7 +14,7 @@ You also have to install the dependencies, in Debian: .in +4n .EX -apt install nginx libcgi-pm-perl +apt install nginx libcgi-pm-perl fcgiwrap .EE .SH INSTALLATION @@ -63,6 +63,10 @@ permissions so the user that is running nginx (usually) .I www-data can write on it. +.EX +chown www-data:www-data files +.EE + .SH TROUBLESHOOTING .SS 502 Bad Gateway diff --git a/doc/lainsafe.md b/doc/lainsafe.md index 04e2114..087fb6a 100644 --- a/doc/lainsafe.md +++ b/doc/lainsafe.md @@ -12,7 +12,7 @@ It runs in a Web server (i.e. nginx) with a CGI handler (i.e. fcgiwrap) You also have to install the dependencies, in Debian: - apt install nginx libcgi-pm-perl + apt install nginx libcgi-pm-perl fcgiwrap INSTALLATION ============ @@ -42,7 +42,7 @@ recommended. The following configuration should work for nginx: } The document root will be /var/www/lainsafe (be sure to change it in -*root* and *fastcgi\_param SCRIPT\_FILENAME if you\'re going to use +*root* and *fastcgi_param SCRIPT_FILENAME if you\'re going to use another directory* You also have to give the .cgi files +x permissions: @@ -53,6 +53,8 @@ And also, create the \"files\" directory manually, and give it permissions so the user that is running nginx (usually) *www-data* can write on it. + chown www-data:www-data files + TROUBLESHOOTING ===============