在 Ubuntu 18.04 LTS 上安装并运行 KBEngine

本文用到的组件和系统版本: OS: Ubuntu 18.04 LTS MySQL: 5.7.22 gcc: 7.3.0 g++: 7.3.0 Python: 3.6.5 首先安装各种依赖: sudo apt-get update sudo apt-get install libssl-dev mysql-server libmysqld-dev mysql-client libmysqlclient-dev gcc g++ python3 编译引擎 下面从官方仓库下载引擎源码,本人下载的是当时最新版本1.1.8: wget https://github.com/kbengine/kbengine/archive/v1.1.8.tar.gz tar -xzvf v1.1.8.tar.gz 接着就可以对代码进行编译了: cd kbengine-1.1.8/kbe/src chmod -R 755 . make 我在编译过程中出现了以下错误: /usr/lib/gcc/x86_64-linux-gnu/7/include/mm_malloc.h:34:16: error: declaration of ‘int posix_memalign(void**, size_t, size_t) throw ()’ has a different exception specifier extern "C" int posix_memalign (void **, size_t, size_t) throw (); ^~~~~~~~~~~~~~ In file included from /home/dyz/kbengine-1.
Read more →

Set Up Flarum From Scratch

Befor you continue 1. Get a VPS from Linode/Vultr/whatever 2. Pick a linux distribution and make it running(I use CentOS 7). 3. Install Apache/MySQL/PHP 7.1 Get yourself a non-root sudo user adduser USERNAME passwd USERNAME usermod -aG wheel USERNAME su USERNAME Install and configure Apache Check this out First install it. sudo yum update sudo yum -y install httpd sudo systemctl enable httpd.service Then create directory structure.
Read more →

Migrating Ghost to 1.0 from 0.11.x on CentOS 7

Ghost has released 1.0, with breaking changes so there’s no smooth upgrading method but to take a fresh install. Here’s my migration of this blog to Ghost 1.0. There’s already an official tutorial to help you walk this through, but since it only supports Ubuntu officially, so I have to explore my own way on my CentOS 7 server. It turns out that there’s not much modifications compared to Ubuntu version, so I’m just writing this down as a record of my migration.
Read more →