Wallabag (Ubuntu 18.04): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 13: Zeile 13:
cd ~/temp
cd ~/temp
git clone https://github.com/wallabag/wallabag.git
git clone https://github.com/wallabag/wallabag.git
cd wallabag
sudo mv ~/temp/wallabag/ /mnt/synology/web1/www/wallabag2_4_0
sudo chown -R www-data:www-data wallabag2_4_0
cd /mnt/synology/web1/www/wallabag2_4_0
curl -sS https://getcomposer.org/installer | php
curl -sS https://getcomposer.org/installer | php
make install
make install
</pre>
{{note|Noch in Bearbeitung}}
<pre>
sudo mv ~/temp/wallabag/ /mnt/synology/web1/www/wallabag2_4_0


cd /mnt/synology/web1/www/
cd /mnt/synology/web1/www/
sudo chown -R www-data:www-data wallabag2_4_0
sudo ln -s wallabag2_4_0 wallabag  
sudo ln -s wallabag2_4_0 wallabag  
</pre>
</pre>

Version vom 3. August 2020, 15:05 Uhr

Noch in Bearbeitung


Voraussetzungen

sudo apt-get install php-tidy

Installation

cd ~/temp
git clone https://github.com/wallabag/wallabag.git
sudo mv ~/temp/wallabag/ /mnt/synology/web1/www/wallabag2_4_0
sudo chown -R www-data:www-data wallabag2_4_0
cd /mnt/synology/web1/www/wallabag2_4_0
curl -sS https://getcomposer.org/installer | php
make install

cd /mnt/synology/web1/www/
sudo ln -s wallabag2_4_0 wallabag 

Datenbank

create user 'wallabag'@'%' identified by '<password>';
grant all on wallabag.* to 'wallabag'@'%'; 

Konfiguration

Apache

/etc/apache2/sites-available/wallabag.conf

sudo vi /etc/apache2/sites-available/wallabag.conf
<VirtualHost *:80>
  ServerName wallabag.kirner.or.at
  Redirect / https://wallabag.kirner.or.at
</VirtualHost> 

/etc/apache2/sites-available/wallabag-ssl.conf

sudo vi /etc/apache2/sites-available/wallabag-ssl.conf
<VirtualHost *:443>
  ServerName wallabag.kirner.or.at
  SSLEngine On
  SSLCertificateFile /etc/ssl/certs/wallabag.crt
  SSLCertificateKeyFile /etc/ssl/private/apache.key

  DocumentRoot /mnt/synology/web1/www/wallabag/web  
  <Directory /mnt/synology/web1/www/wallabag/web>
    Require all granted
    AllowOverride None
    Order Allow,Deny   
    Allow from All

    <IfModule mod_rewrite.c>
      Options +SymLinksIfOwnerMatch  
      Options -MultiViews 
      RewriteEngine On 
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ app.php [QSA,L]
    </IfModule> 
  </Directory>

  # uncomment the following lines if you install assets as symlinks
  # or run into problems when compiling LESS/Sass/CoffeScript assets
  # <Directory /var/www/wallabag>
  #     Options FollowSymlinks
  # </Directory>
  # optionally disable the RewriteEngine for the asset directories
  # which will allow apache to simply reply with a 404 when files are 
  # not found instead of passing the request into the full symfony stack
  <Directory /mnt/synology/web1/www/wallabag/web/bundles>
    <IfModule mod_rewrite.c>
      RewriteEngine Off
    </IfModule>
  </Directory>

  ErrorLog ${APACHE_LOG_DIR}/wallabag.kirner.or.at-error.log
  CustomLog ${APACHE_LOG_DIR}/wallabag.kirner.or.at-access.log combined                                                                                                           </VirtualHost>

/mnt/synology/web1/www/wallabag/app/config/parameters.yml

sudo vi /mnt/synology/web1/www/wallabag/app/config/parameters.yml 

Links

https://doc.wallabag.org/en/admin/installation/installation.html#installation

https://doc.wallabag.org/en/admin/parameters.html


Zurück zu Wallabag