Install Wallabag on Ubuntu 12.04 LTS VPS

logo-icon-black-no-bg-smWallabag (formerly poche) is a self hostable open source application for saving web pages. It is written in PHP and supports MySQL, SQLite and PostgreSQL database servers. In today’s article, we will show you how to install Wallabag with Nginx, PHP-FPM and MySQL on an Ubuntu VPS.


Install MySQL and create a database.

apt-get update
apt-get upgrade
apt-get install mysql-server mysql-client
mysql -uroot -p
GRANT ALL PRIVILEGES ON wallabag.* TO 'wallabag'@'localhost' IDENTIFIED BY '_PASSWORD_';

Install Nginx and PHP-FPM

apt-get install nginx php5-fpm php-cli php5-mysql php5-mcrypt php5-curl php5-tidy php5-sqlite

Install Composer and Git

apt-get install git
curl -sS | php
mv composer.phar /usr/local/bin/composer

Create a root directory for your web site and clone the git repository from github

mkdir -p /var/www/{public_html,logs}
git clone /var/www/

Install the dependencies and set the correct permissions

cd var/www/
composer install
chown -R www-data: /var/www/

Nginx configuration.
Create a new Nginx server block with the following content

# /etc/nginx/sites-available/
server {
    listen 80;

    root /var/www/;
    access_log /var/www/;
    error_log /var/www/;
    index index.html index.php;

    location / {
        try_files $uri $uri/ /index.php;

    location ~ /(db) {
        deny all;
        return 404;

    location ~ \.php$ {
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        try_files $uri = 404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include /etc/nginx/fastcgi_params;
        fastcgi_index index.php;


Symlink it and restart the server

ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/
/etc/init.d/nginx restart

Wallabag installation

Open a browser pointing to your Wallabag installation, and follow the on-screen instructions to complete the process.  After successful installation remove install directory.

For more information about Wallabag, please consult the Wallabag site.

Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert linux admins to install this for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

5 thoughts on “Install Wallabag on Ubuntu 12.04 LTS VPS”

  1. Thank you a lot for this.
    I just had to remove the /etc/nginx/sites-available/default file which was provoking an (98: Address already in use) error, since I already had an apache service running on the default 80 port.

  2. Hi!

    Thank you for this great tutorial!
    Unfortunately I wasn’t able to get it running so far, since I have an ownCloud running on nginx as well. Do you have an idea on how to set it up in a way that I can reach them via and

    Thank you!


Leave a Comment

To prove you are human please solve the following *