Skip to content

Latest commit

 

History

History
115 lines (83 loc) · 3.15 KB

README.md

File metadata and controls

115 lines (83 loc) · 3.15 KB

SwiftBBS

SwiftBBS is BBS with Swift, MySQL and PerfectLib on Linux (Ubuntu 15.10)

Install ImageMagick

$ sudo apt-get install -y imagemagick

Install Swift

See swift.org or gist

Clone repository

$ git clone https://github.com/groovelab/SwiftBBS.git
$ cd SwiftBBS
$ git submodule init
$ git submodule update
$ git submodule foreach 'git pull origin master'

Install PerfectLib

ref. PerfectLib README or gist

$ sudo apt-get -y install libssl-dev libevent-dev libsqlite3-dev make make-guile
$ cd Perfect/PerfectLib
$ sudo make
$ sudo make install
$ ll /usr/local/lib/*Perfect*
/usr/local/lib/PerfectLib.so -> (your_home)/SwiftBBS/Perfect/PerfectLib/PerfectLib.so
/usr/local/lib/PerfectLib.swiftdoc -> (your_home)/SwiftBBS/Perfect/PerfectLib/PerfectLib.swiftdoc
/usr/local/lib/PerfectLib.swiftmodule -> (your_home)/SwiftBBS/Perfect/PerfectLib/PerfectLib.swiftmodule
$ cd ../../ 

Install Perfect Server FastCGI

You can run SwiftBBS on PerfectServerHttp or Apache2(mod_perfect)

ref. PerfectServer README or gist

$ cd Perfect/PerfectServer
$ sudo make
$ sudo ln -sf "$(pwd)/perfectserverfcgi" /usr/local/bin/
$ ll /usr/local/bin/perfect*
/usr/local/bin/perfectserverfcgi -> (your_home)/SwiftBBS/Perfect/PerfectServer/perfectserverfcgi
$ cd ../../

Install MySQL Connector

ref. MySQL Connector README or gist

$ sudo apt-get -y install mysql-server libmysqlclient-dev
$ cd Perfect/Connectors/MySQL
$ sudo make
$ sudo ln -sf "$(pwd)/MySQL.so" /usr/local/lib/
$ sudo ln -sf "$(pwd)/MySQL.swiftmodule" /usr/local/lib/

create database

$ mysql -u root
mysql> CREATE DATABASE SwiftBBS DEFAULT CHARACTER SET utf8mb4;

Deploy SwiftBBS

$ cd SwiftBBS
$ sudo make
$ sudo make install
$ cd ../

if need, configure database setting

$ vi SwiftBBS\ Server/Config.swift

Run Perfect Server FastCGI

$ SwiftBBS/SwiftBBS\ Server/perfectServerFcgi.sh start

Configure nginx

$ sudo apt-get install nginx
$ sudo vi /etc/nginx/sites-available/default
$ sudo service nginx start

See /etc/nginx/sites-available/default

you must change $perfect_root and $root like below

set $perfect_root "(your_home)/SwiftBBS/SwiftBBS/SwiftBBS Server";
set $root "${perfect_root}/webroot";

After

access http://your.domain.com/