How to Install Simple Forum Software on Linux Ubuntu with Nginx AsmBB

🐝 Download and install Simple Fast Forum Software AsmBB

tuenhai@tuenhai.com:~$ mkdir -p ~/forum/tuenhai.com
$ cd ~/forum/tuenhai.com
$ wget https://asm32.info/fossil/repo/asmbb/doc/trunk/install/asmbb.tar.gz
$ tar -xvzf asmbb.tar.xz
$ mv asmbb/* ./

🚕 Nginx configuration

tuenhai@tuenhai.com:~$ sudo vi /etc/nginx/sites-available/tuenhai.com

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    root /home/tuenhai/forum/tuenhai.com;
    server_name bbs.tuenhai.com;

    location / {
        fastcgi_pass unix:/home/tuenhai/forum/tuenhai.com/engine.sock;
        include fastcgi_params;
    }

    access_log /home/tuenhai/logs/tuenhai.com-bbs_access.log;
    error_log /home/tuenhai/logs/tuenhai.com-bbs_error.log;

    ssl_certificate /etc/letsencrypt/live/tuenhai.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/tuenhai.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}

$ nginx -s reload

😼 Systemd configuration

$ su
# vi /etc/systemd/system/asmbb.service

[Unit]
Description=AsmBB forum engine FastCGI script.
After=nginx.service

[Service]
Type=simple
User=tuenhai
WorkingDirectory=/home/tuenhai/forum/tuenhai.com
ExecStart=/home/tuenhai/forum/tuenhai.com/engine
Restart=on-failure

[Install]
WantedBy=nginx.service


# su tuenhai
$ sudo systemctl start asmbb
$ sudo systemctl enable asmbb

🗻 Setup AsmBB

Visit https://bbs.tuenhai.com

Setup administrator user

🤔 Edit Template

# edit template
$ vi /templates/Light/main_html_end.tpl

Reference:

results matching ""

    No results matching ""