Wallabag - Installation (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→Links) |
|||
(17 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
{{note|Noch in bearbeitung}} | |||
== Installation == | == Installation == | ||
<pre> | <pre> | ||
sudo apt-get install | 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 | |||
</pre> | |||
<pre> | |||
sudo apt-get install php5-json php5-gd php5-tidy php5-curl php5-xmlrpc php5-mysql php5-readline php5-cli | |||
</pre> | </pre> | ||
<pre> | <pre> | ||
cd ~/downloads | |||
git clone https://github.com/wallabag/wallabag.git | git clone https://github.com/wallabag/wallabag.git | ||
cd wallabag && make install | |||
</pre> | |||
<pre> | |||
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 ({ }): | |||
</pre> | |||
Beschreibung dazu siehe [http://doc.wallabag.org/de/latest/user/parameters.html http://doc.wallabag.org/de/latest/user/parameters.html] | |||
We already created database - therefore select 'N': | |||
<pre> | |||
It appears that your database already exists. Would you like to reset it? (y/N)N | |||
</pre> | |||
<pre> | |||
cd /var/www/ | |||
sudo mv ~/downloads/wallabag/ . | |||
sudo chown -R www-data:www-data wallabag | |||
</pre> | |||
=== Apache === | |||
==== ohne SSL ==== | |||
<pre> | |||
<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> | |||
</pre> | |||
==== mit SSL ==== | |||
<pre> | |||
<VirtualHost *:80> | |||
ServerName wallabag.kirner.or.at | |||
ServerAlias wallabag.kirner.or.at | |||
Redirect / https://wallabag.kirner.or.at | |||
</VirtualHost> | |||
</pre> | |||
<pre> | |||
<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> | |||
</pre> | </pre> | ||
Zeile 19: | Zeile 179: | ||
Zurück zu [[ | Zurück zu [[Wallabag (unterschiedliche Versionen)#Ubuntu Versionen|Wallabag]] |
Aktuelle Version vom 2. August 2020, 12:38 Uhr
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 Wallabag