Skip to content

How to setup website

agrinevich edited this page May 31, 2023 · 8 revisions
  • adduser website (if domain is 'website.com')
  • mkdir /var/www/website.com
  • chown -R website:website /var/www/website.com/
  • chmod -R 755 /var/www/website.com
  • setup /etc/nginx/conf.d/website.com.conf (example in repo)
  • restart nginx
  • disconnect root user session
  • ssh login as user 'website'
  • git clone repo to user home dir
  • 'cd pagekit' and 'prove -l' to check dependencies
  • copy files from '/home/website/pagekit' to '/var/www/website.com'
  • setup /home/website/pagekit/rsync.exclude
  • setup /var/www/website.com/launcher.conf
  • setup /var/www/website.com/main.conf
  • run './bin/launcher.pl --command=init'
  • run './bin/launcher.pl --command=start'
  • in browser go website.com/admin/ and add/setup all pages (optional step)
  • update domain A-records to server IP (and wait until its in effect)
  • certbot --nginx (read https://www.itzgeek.com/how-tos/linux/debian/how-to-install-lets-encrypt-ssl-certificate-for-nginx-on-debian-11.html )
  • update /var/www/website.com/main.conf (https in site host)
  • in browser go website.com/admin/
Clone this wiki locally