Installing Wallabag
Outcome: Wallabag running on your machine with a SQLite database and an administrator account, proved by the console checks — and an honest account of what this lab's machine had, and lacked, before it started.
What the machine needs
Wallabag 2.6 is a PHP application. The lab machine (an Ubuntu sandbox) already had:
- PHP 8.3.6 (command line)
- Composer 2.7.1 — not needed for the release package, which ships its libraries, but present
- These PHP extensions, all confirmed with
php -mbefore installing (transcriptwallabag-lab/transcripts/t00-environment.txt):pdo_sqlite,gd,intl,mbstring,xml,curl,zip, plusdom,iconv,tokenizer, andsqlite3
One honest finding: the tidy extension
was not present on this machine, and
Wallabag installed and ran without it in
the lab. Treat that as this machine's
result, not a promise: check your own
php -m against the project's current
requirements page before you begin, and
record what you find rather than assuming.
The route the lab used: the release package
The project publishes a ready-made package
per release on its GitHub releases page.
The lab downloaded
wallabag-2.6.15.tar.gz (64 MB, vendors
pre-installed) for release 2.6.15 and
unpacked it in a scratch folder:
tar xzf wallabag-2.6.15.tar.gz
cd wallabag-2.6.15
No composer install was needed: the
vendor/ folder inside the package is
complete. That is worth stating because
much older advice assumes you build the
libraries yourself.
Configure for SQLite
Settings live in app/config/parameters.yml.
The lab changed four lines from the
defaults (the full file the lab used is
wallabag-lab/parameters-lab.yml.example,
with the secret redacted):
database_driver: pdo_sqlite
database_path: "%kernel.project_dir%/data/db/wallabag.sqlite"
database_charset: utf8
domain_name: 'http://127.0.0.1:18089'
domain_name must be the address readers
will use, because Wallabag builds links and
export files from it. The lab's value is a
loopback address and port; yours will be
your server's real name.
Install, and create the administrator
php bin/console wallabag:install --env=prod --reset
The installer checks the system first, and
its transcript
(wallabag-lab/transcripts/t01-version-and-install.txt)
is the shape your install should match:
Step 1 of 4: Checking system requirements.
PDO Driver (pdo_sqlite) OK!
Database connection OK!
Database version OK!
curl_exec OK!
curl_multi_init OK!
[OK] Success! Your system can run wallabag properly.
Step 2 of 4: Setting up database.
...
[OK] wallabag has been successfully installed.
One wrinkle, kept on record: the installer's interactive administrator prompt consumed the lab's piped input as its yes/no answer and created no user. The lab created the administrator explicitly instead, which is the reliable route in a script as well:
php bin/console fos:user:create wallabag wallabag@lab.example wallabag --super-admin --env=prod
It answered Created user wallabag, and a
query of the wallabag_user table showed
the row. Use your own name, address, and a
real password; the lab's are throwaway
credentials for a throwaway instance, and
this guide says so wherever they appear.
Serve it
The lab served the application with PHP's built-in server, using the front controller as the router script — the part that is easy to miss, because without it every address returns the PHP server's own 404:
php -S 127.0.0.1:18089 -t web web/app.php
That is a lab and small-instance route. The project's documentation describes production setups behind Apache or nginx; those are documented-only in this guide. Whichever route you take, the proof is the same:
php bin/console about --env=prod
reported Symfony 4.4.51 on PHP 8.3.6 in the
lab (transcript t01), and
http://127.0.0.1:18089/login returned the
sign-in page — chapter 4 signs in.
Check: php bin/console about --env=prod
runs, the installer transcript ends with
"successfully installed", and the login page
loads. If all three hold, you are installed.