welcome: please sign in

The following 234 words could not be found in the dictionary of 7 words (including 7 LocalSpellingWords) and are highlighted below:
acls   Additional   Additionally   admin   alternative   an   and   another   Answer   answering   app   appeared   application   appropriate   arbitrary   are   as   ask   assumes   attempt   Authorization   be   build   but   can   cannot   Category   causes   cd   Cert   Check   checkout   Choose   clone   code   com   Cond   Configuration   container   Contents   Create   create   createdb   creation   daemon   database   dbtool   defaults   directory   do   doc   Document   documentation   dom   domain   Domtool   driver   drop   either   email   en   end   entirely   Env   example   except   fails   false   files   filesystem   First   for   fosuser   from   fsr   generally   gets   git   github   Guide   guide   hcoop   home   host   hosted   html   http   https   if   If   important   in   In   insecure   Inside   Install   Installation   installation   installing   instance   integrates   into   is   it   It   its   July   just   koreader   last   less   lib   like   ll   ln   local   location   maintaining   make   Makefile   manual   Manual   Material   may   Member   mkdir   My   mysql   name   named   need   net   no   not   Of   of   on   openafs   or   org   out   password   Permissions   php   pocket   Postgre   prod   public   qsappend   questions   re   read   Reader   registration   reply   reset   rewrite   rf   rm   robust   rocks   Root   Rule   Run   runs   sa   schema   Script   self   sender   Serving   session   sessions   set   Set   Setup   setup   several   shared   should   so   source   Ssl   step   store   subdomain   substitute   support   symlink   symlinks   Table   that   The   the   then   This   this   to   tree   twofactor   untested   update   upgrade   Upgrading   Upstream   Use   use   user   username   using   values   var   wallabag   Wallabag   wallbag   want   we   web   webapps   webserver   Websites   well   When   where   wherever   which   will   with   would   write   yes   You   you   your  

Clear message
Edit

MemberManual / WebApplications / Wallabag

Guide for installing and maintaining a Wallabag instance. Wallabag is a self-hosted alternative to pocket that integrates well with KOReader.

1. Installation

1.1. Create the database

You can use either MySQL or PostgreSQL. You'll need to create a database for wallabag. The name is arbitrary but in this guide we'll be using a mysql database named wallabag (PostgreSQL support appeared to be less robust as of July 2020):

dbtool mysql createdb wallabag

1.2. Install and Run Setup Script

Wallabag runs from its source directory. Check the code out to wherever you want to store the webapps (except for ~/public_html). In this guide we'll be using ~/webapps/wallabag.

First, checkout the source code and build the application.

git clone https://github.com/wallabag/wallabag.git ~/webapps/wallabag
cd ~/webapps/wallabag
make

The Makefile will ask you several questions, the important values to set are (substitute YOU for your username, and YOUR-WALLABAG-DOMAIN for the domain you are installing wallabag on):

database_driver: mysql
database_host: mysql.hcoop.net
database_name: YOU_wallabag
database_user: YOU
database_password: YOUR MYSQL PASSWORD
domain_name: https://YOUR-WALLABAG-DOMAIN
twofactor_sender: no-reply@YOUR-WALLABAG-DOMAIN
fosuser_registration: false
from_email: no-reply@YOUR-WALLABAG-DOMAIN

Use http for your domain if you will not be using TLS.

When the Makefile gets to the database creation step, it may ask you if you want to reset the database. Answer no and it will create the schema (answering yes just causes it to attempt to drop the database, which fails). If you need to reset the database entirely, you'll need to drop and re-create it using dbtool

It will then ask if you would like to setup an admin user, you generally should. Choose an appropriate username and password, and do not use the insecure defaults.

1.3. Set Permissions

The application will need to read the source tree, and write to ~/webapps/wallbag/var as your daemon user. Additionally, it will attempt to store session in `~/webapps/wallabag/var/sessions/prod, but PHP cannot write session files into AFS, so we symlink that to the shared sessions directory on the webserver's local filesystem. Set the appropriate openafs acls and symlinks:

fsr sa ~/webapps/wallabag/ $USER.daemon read
fsr sa ~/webapps/wallabag/var/ $USER.daemon write
mkdir -p ~/webapps/wallabag/var/sessions ; rm -rf ~/webapps/wallabag/var/sessions/prod ; ln -s  /var/lib/php/sessions/ ~/webapps/wallabag/var/sessions/prod

1.4. Domtool Configuration

This example assumes you'll be installing it as a subdomain named wallabag of another domain. Inside of the dom container for your domain:

  web "wallabag" where
    DocumentRoot = home "webapps/wallabag/web";
    SSL = YOUR SSL CERT;
  with
    location "/" with
      setEnvIf "Authorization" "(.*)" ["HTTP_AUTHORIZATION=$1"];
   
      rewriteCond "%{REQUEST_FILENAME}" "!-f" [];
      rewriteRule "." "app.php" [qsappend,last];
    end;
  end;

2. Upgrading

(NB: untested)

make update

3. Additional Material


CategoryMemberManual

MemberManual/WebApplications/Wallabag (last edited 2020-07-19 00:26:45 by ClintonEbadi)