Server prep - Alpine 3.15 - NodeJS, MongoDB
-
# apk update # apk upgrade # apk add nginx # apk add nodejs npm # npm i -g pm2 # echo 'alias ll="ls -al"' > ~/.profile # apk add vim # apk add htop
-
Flarum requirement - PHP 7.*
Ref: https://www.cyberciti.biz/faq/how-to-install-php-7-fpm-on-alpine-linux/
Remove PHP 8.1, and install PHP 7 instead
vim /etc/apk/repositories
# http://dl-cdn.alpinelinux.org/alpine/v3.16/main # http://dl-cdn.alpinelinux.org/alpine/v3.16/community
# The following repos enabled for PHP 7 on the latest version # http://dl-cdn.alpinelinux.org/alpine/edge/main http://dl-cdn.alpinelinux.org/alpine/edge/community http://dl-cdn.alpinelinux.org/alpine/edge/testing
# apk add php7-curl # apk add php7-dom # apk add php7-fileinfo # apk add php7-gd # apk add php7-json # apk add php7-mbstring # apk add php7-openssl # apk add php7-pdo_mysql # # apk add php7-tokenizer # apk add php7-zip
-
MongoDB
Ref: https://linux.how2shout.com/how-to-install-mongodb-server-on-alpine-linux/
# echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/main' >> /etc/apk/repositories # echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/community' >> /etc/apk/repositories # apk update # apk add mongodb # apk add mongodb-tools # mkdir -p /data/db/ # chown 'root' /data/db # rc-update add mongodb default # rc-service mongodb start