bbs_setup.txt 916 B

12345678910111213141516171819202122232425262728293031323334353637
  1. pacman -S php-fpm php-pgsql php-gd postgresql
  2. initdb --locale=en_US.UTF-8 -E UTF8 -D /var/lib/postgres/data
  3. enable and start postgresql
  4. create a bbs user, and set password:
  5. [postgres@wehack]$ createuser --interactive
  6. [postgres@wehack]$ psql
  7. postgres=# \password bbs
  8. create db:
  9. creatdb -U bbs -d mybb
  10. set pg_hba.conf(/var/lib/postgres/data/pg_hba.conf):
  11. # TYPE DATABASE USER ADDRESS METHOD
  12. # "local" is for Unix domain socket connections only
  13. local all bbs password
  14. local all all peer
  15. import my database backup:
  16. xzcat bbs.sql.xz | psql -U bbs -d mybb
  17. cd /srv/http/sites
  18. tar xvpf bbs.tar.xz
  19. pacman -S opensmtpd
  20. # is the smtpd service really needed?
  21. systemctl enable smtpd
  22. systemctl start smtpd
  23. copy the Caddy conf file...
  24. change DNS record
  25. php extension needed: gd, pgsql