tormon/README.md

17 lines
698 B
Markdown
Raw Normal View History

2016-08-24 21:01:48 +02:00
```sh
pkg_add curl # if you don't have it already
mv /var/www /var/www.old # clean out OpenBSD's default guff
mkdir -p /var/www/logs /var/www/run /var/www/perl5 /var/www/tormon
chown www:www /var/www/run
install -o www -g www -m 0400 httpd.conf /etc/
echo "permit nopass root as www" >> /etc/doas.conf
curl -L https://cpanmin.us | perl - App::cpanminus
cpanm -l /var/www/perl5 FCGI
perl -I /var/www/perl5/lib/perl5 -MFCGI -M5.010 -e 'say "it works"' # test perl installation
install -o www -g www -m 0500 tormon/* /var/www/tormon/
echo 'echo -n "Starting tormon" && doas -u www /var/www/tormon/tormon.fcgi &' >> /etc/rc.local
# updating
install -o www -g www -m 0500 tormon/* /var/www/tormon/
```