wallabag

wallabag 是一款网页应用,可让您保存网页以供日后阅读。点击保存,即可随时阅读。今天尝试手动安装wallabag。1
网站:wallabag.org
安装文档
安装机版本
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookwormwget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-server_8.0.41-1debian12_amd64.deb-bundle.tar
tar -xf mysql-server_8.0.41-1debian12_amd64.deb-bundle.tar
apt install libaio-dev mecab-ipadic-utf8
dpkg -i *.deb
systemctl status mysql
mysql -u root -p初始化db
#创建wallabag库
CREATE DATABASE wallabag;
#创建用户wallabag_user,并只有本地登录
CREATE USER 'wallabag_user'@'localhost' IDENTIFIED BY 'your_password';
#将wallabag库,授权给wallaba_user用户。
GRANT ALL PRIVILEGES ON wallabag.* TO 'wallabag_user'@'localhost';
FLUSH PRIVILEGES;安装PHP
apt install php8.2 php8.2-cli php8.2-fpm php8.2-mysql php8.2-curl php8.2-intl php8.2-gd php8.2-mbstring php8.2-xml php8.2-zip安装文档中要求安装composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer
composer self-update下载wallabagwget https://github.com/wallabag/wallabag/releases/download/2.6.12/wallabag-2.6.12.tar.gz
tar -zxf wallabag-2.6.12.tar.gz
mv wallabag-2.6.12 wallabag
chown -R www-data:www-data wallabag
cd wallabag && make install
# composer 安全问题不支持root直接执行
# make install 或 make install --ignore-root-warning 这些命令无效再使用以下命令
./scripts/install.sh prod --ignore-root-warningroot@localhost:/opt/wallabag# composer install --ignore-platform-req=ext-intl --ignore-platform-req=ext-tidy
> bin/console cache:clear --no-warmup
// Clearing the cache for the dev environment with debug true
[OK] Cache for the "dev" environment (debug=true) was successfully cleared.
> bin/console assets:install web --symlink --relative
Trying to install assets as relative symbolic links.
--- ------------------------ ------------------
Bundle Method / Error
--- ------------------------ ------------------
✔ NelmioApiDocBundle relative symlink
✔ CraueConfigBundle relative symlink
✔ BabDevPagerfantaBundle relative symlink
✔ FOSJsRoutingBundle relative symlink
--- ------------------------ ------------------
[OK] All assets were successfully installed. 配置nginx.conf2
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name demo.domain.com; # 替换为你的域名
ssl_certificate /opt/certs/domain.cer;
ssl_certificate_key /opt/certs/domain.key;
root /usr/local/nginx/html/wallabag/web; # 替换为wallabag的web目录路径
location / {
try_files $uri /app.php$is_args$args;
}
location ~ ^/app\.php(/|$) {
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; # 替换为你的PHP-FPM套接字路径
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
internal;
}
location ~ \.php$ {
return 404;
}
}
登录youdomain.com 引导设置
...截图稍候加入
- 上一篇: 欢迎使用 Typecho
- 下一篇: MySQL