帮助:MediaWiki 安装:修订间差异
来自陋室
更多操作
删除的内容 添加的内容
Maintenance script(留言 | 贡献) 小 更新安装指南为通用步骤 |
Maintenance script(留言 | 贡献) 按当前站点实际配置更新更新与依赖 |
||
| 第15行: | 第15行: | ||
=== 更新与依赖 === |
=== 更新与依赖 === |
||
根据本站当前部署(Debian 12 + Nginx + PHP 8.2 FPM + MySQL),建议按以下方式更新与安装依赖: |
|||
在安装前先更新软件包并安装基本依赖:<syntaxhighlight lang="bash"> |
|||
<syntaxhighlight lang="bash"> |
|||
sudo apt update && sudo apt upgrade -y |
sudo apt update && sudo apt upgrade -y |
||
sudo apt install |
sudo apt install nginx mysql-server php8.2-fpm php8.2-cli php8.2-mysql php8.2-gd php8.2-mbstring php8.2-xml php8.2-curl php8.2-zip php8.2-intl php8.2-apcu unzip git -y |
||
# 多媒体与差异对比工具 |
|||
sudo apt install ffmpeg poppler-utils imagemagick php-wikidiff2 -y |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||
如需 HTTPS,可同时安装 certbot/openssl 等工具,稍后用于申请证书或配置自签名证书。 |
|||
如需启用 Lua/时间线/乐谱等扩展,可按需补充: |
|||
<syntaxhighlight lang="bash"> |
|||
# Scribunto |
|||
sudo apt install php-luasandbox -y |
|||
# EasyTimeline/Score 等 |
|||
sudo apt install perl ploticus lilypond ghostscript -y |
|||
</syntaxhighlight> |
|||
说明:本站使用 Nginx,如需 Apache 请改用对应包与配置;PHP-FPM 请确保与 Nginx 配置匹配。 |
|||
== 安装步骤 == |
== 安装步骤 == |
||
=== 1. 下载 MediaWiki === |
=== 1. 下载 MediaWiki === |
||