MDClub 是一个漂亮、轻量的开源社区系统。它运行快速且易于使用,完全具备一个成熟社区所需的功能。它的特性包括:

  • Material Design 设计语言
  • 响应式设计
  • 超级轻量级
  • 自动适配暗色模式
  • 单页面应用,且完美支持 SEO
  • 定制的富文本编辑器
  • 方便安装
  • 强大的 Restful API 接口
  • OpenAPI 规范的文档
  • 多平台 JavaScript SDK

试用了一下,页面设计确实好看,部署过程也相对简单,只是官方给出的安装手册比较简洁,没有详细步骤

本文将展示如何搭建 MDClub 开源论坛系统

环境

  • Debian 10
    • PHP 7.4
    • MySQL 8
    • Nginx

参考

步骤

安装 PHP 和 MySQL

详见前文 Set up MediaWiki with PHP7.4, nginx and MySQL 中 Install the latest PHP 和 Setup MySQL 小节

这里为方便阅读,复读一遍指令(以下指令均在 root 用户下执行)

  1. 安装 PHP
    • 添加并更新源
      apt -y install lsb-release apt-transport-https ca-certificates 
      wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
      echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list
      apt update
    • 安装 PHP 以及 MDClub 所需组件
      apt install php7.4 php7.4-fpm php-gd php-json php-curl php-mysql
    • 检查 php-fpm 运行状态
      systemctl status php7.4-fpm
  2. 安装MySQL
    • 添加并更新源
      wget https://dev.mysql.com/get/mysql-apt-config_0.8.15-1_all.deb
      dpkg -i mysql-apt-config*
      apt update
    • 安装 MySQL 8
      apt install mysql-server

      安装时会提示为 root 用户设置密码

    • 检查 MySQL 运行状态
      systemctl status mysql-server

Continue reading “MDClub – 又一个论坛系统”

The MediaWiki software is used by tens of thousands of websites and thousands of companies and organizations. It powers Wikipedia and also this website. MediaWiki helps you collect and organize knowledge and make it available to people. It’s powerful, multilingualfree and open, extensible, customizable, reliable, and free of charge. Find out more and if MediaWiki is right for you.

This article shows you how to set up MediaWiki on local network (accessed by IP address, without domain and SSL configuration).

Environment

  • Debian 10

Reference

Steps

Read the installation requirements before going through the following steps.

For those who doesn’t want to open another page, here’s the hardware requirements.

  • Minimal requirements
    • 256MB of RAM
    • 85MB of storage

All the following commands are executed as root.

Install the latest PHP

Continue reading “Set up MediaWiki with PHP7.4, nginx and MySQL”