Wallabag - Installation (Linux)
Version vom 26. Juli 2020, 15:58 Uhr von Martin Kirner (Diskussion | Beiträge) (Martin Kirner verschob die Seite Wallabag (Linux) nach Wallabag - Installation (Linux), ohne dabei eine Weiterleitung anzulegen)
Noch in bearbeitung
Installation
mysql -u root -p mysql> create database wallabag; mysql> create user 'wallabag'@'%' identified by '<password>'; mysql> grant all on wallabag.* to 'wallabag'@'%'; mysql> create user 'wallabag'@'localhost' identified by '<password>'; mysql> grant all on wallabag.* to 'wallabag'@'localhost'; mysql> flush privileges; mysql> quit
sudo apt-get install php5-json php5-gd php5-tidy php5-curl php5-xmlrpc php5-mysql php5-readline php5-cli
cd ~/downloads git clone https://github.com/wallabag/wallabag.git cd wallabag && make install
Some parameters are missing. Please provide them.
tabase_driver (pdo_sqlite): pdo_mysql
database_host (127.0.0.1): localhost
database_port (null): 3306
database_name (symfony): wallabag
database_user (root): wallabag
database_password (null): <password>
database_path ('%kernel.root_dir%/../data/db/wallabag.sqlite'):
database_table_prefix (wallabag_): wallabag_
database_socket (null):
database_charset (utf8):
mailer_transport (smtp): smtp
mailer_host (127.0.0.1): mail.kirner.or.at
mailer_user (null): admin
mailer_password (null): <password>
locale (en): de
secret (ovmpmAWXRCabNlMgzlzFXDYmCFfzGv): <secret value>
twofactor_auth (true): false
twofactor_sender (no-reply@wallabag.org): no-reply@kirner.or.at
fosuser_registration (true): false
fosuser_confirmation (true): false
from_email (no-reply@wallabag.org): no-reply@kirner.or.at
rss_limit (50):
rabbitmq_host (localhost):
rabbitmq_port (5672):
rabbitmq_user (guest):
rabbitmq_password (guest):
rabbitmq_prefetch_count (10):
redis_scheme (tcp):
redis_host (localhost):
redis_port (6379):
redis_path (null):
redis_password (null):
sites_credentials ({ }):
Beschreibung dazu siehe http://doc.wallabag.org/de/latest/user/parameters.html
We already created database - therefore select 'N':
It appears that your database already exists. Would you like to reset it? (y/N)N
cd /var/www/ sudo mv ~/downloads/wallabag/ . sudo chown -R www-data:www-data wallabag
Apache
ohne SSL
<VirtualHost *:80>
ServerName wallabag.kirner.or.at
ServerAlias wallabag.kirner.or.at
DocumentRoot /var/www/wallabag/web
<Directory /var/www/wallabag/web>
AllowOverride None
Order Allow,Deny
Allow from All
<IfModule mod_rewrite.c>
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 /var/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>
mit SSL
<VirtualHost *:80>
ServerName wallabag.kirner.or.at
ServerAlias wallabag.kirner.or.at
Redirect / https://wallabag.kirner.or.at
</VirtualHost>
<VirtualHost *:443>
ServerName wallabag.kirner.or.at
ServerAlias wallabag.kirner.or.at
DocumentRoot /var/www/wallabag/web
<Directory /var/www/wallabag/web>
AllowOverride None
Order Allow,Deny
Allow from All
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
</Directory>
SSLEngine On
SSLCertificateFile /etc/ssl/certs/wallabag.crt
SSLCertificateKeyFile /etc/ssl/private/apache.key
# 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 /var/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>
Links
https://got-tty.org/installation-von-wallabag-auf-debian-jessie
https://www.linuxbabe.com/ubuntu/install-wallabag-ubuntu-16-04
Zurück zu Ubuntu