version=pmwiki-2.2.130 ordered=1 urlencoded=1 agent=Mozilla/5.0 (X11; OpenBSD amd64; rv:82.0) Gecko/20100101 Firefox/82.0 author=jrmu charset=UTF-8 csum= ctime=1613879572 host=198.251.81.119 name=Webnews.Install rev=10 targets=Openhttpd.Perl text=First, see the [[openhttpd/perl|perl install]].%0a%0a[@%0a$ ftp http://www.dgate.org/webnews/tars/webnews-1.3.1.tar.gz%0a$ doas mv webnews /var/www/htdocs/%0a$ doas chown -R www:daemon /var/www/htdocs/webnews%0a@]%0a%0aAs normal user:%0a%0a[@%0a$ cpan%0a...%0aWhat approach do you want? (Choose 'local::lib', 'sudo' or 'manual')%0a [local::lib] %0a...%0acpan[1]> install News::NNTPClient%0acpan[2]> install News::Newsrc%0acpan[3]> install Set::IntSpan%0acpan[4]> install Text::Wrap%0acpan[5]> install HTTP::Date%0acpan[6]> install MIME::QuotedPrint%0acpan[7]> install MIME::Base64%0a@]%0a%0aThen we need to copy the perl libraries:%0a%0a[@%0a$ doas mkdir -p /var/www/usr/local/libdata/%0a$ doas cp -R /usr/local/libdata/perl5 /var/www/usr/local/libdata/%0a@]%0a%0aWe need to change two lines in /var/www/htdocs/webnews/webnews.cgi:%0a%0a[@%0aBEGIN { $CONFFILE = '/htdocs/webnews/webnews.conf'; }%0aBEGIN { $INSTALLDIR = '/htdocs/webnews'; }%0a@]%0a%0aNext we set up the conf file:%0a%0a[@%0a$ doas cp /var/www/htdocs/webnews/webnews.conf.example /var/www/htdocs/webnews/webnews.conf%0a@]%0a%0aThen make a few changes to /var/www/htdocs/webnews/webnews.conf:%0a%0a[@%0a$SERVER = 'example.ircnow.org';%0a$WNDIR = '/htdocs/webnews';%0a$BASEURL = '/';%0a@]%0a%0a!! Troubleshooting%0a%0a[@%0aNews::NNTPClient: Bad hostname: news.oddprotocol.cf at /htdocs/news/webnews.cgi line 119. News::NNTPClient:News::NNTPClient::SOCK1 has been closed at /htdocs/news/webnews.cgi line 147. News::NNTPClient: News::NNTPClient::SOCK1 has been closed at /htdocs/news/webnews.cgi line 169. Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at /usr/local/libdata/perl5/site_perl/News/NNTPClient.pm line 102. News::NNTPClient unexpected EOF on News::NNTPClient::SOCK1 at /htdocs/news/webnews.cgi line 0.%0a@]%0a%0asolution is to create /var/www/etc/resolv.conf time=1615223634 author:1615223634=jrmu diff:1615223634:1613886417:=52,60c52%0a%3c @]%0a%3c %0a%3c !! Troubleshooting%0a%3c %0a%3c [@%0a%3c News::NNTPClient: Bad hostname: news.oddprotocol.cf at /htdocs/news/webnews.cgi line 119. News::NNTPClient:News::NNTPClient::SOCK1 has been closed at /htdocs/news/webnews.cgi line 147. News::NNTPClient: News::NNTPClient::SOCK1 has been closed at /htdocs/news/webnews.cgi line 169. Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at /usr/local/libdata/perl5/site_perl/News/NNTPClient.pm line 102. News::NNTPClient unexpected EOF on News::NNTPClient::SOCK1 at /htdocs/news/webnews.cgi line 0.%0a%3c @]%0a%3c %0a%3c solution is to create /var/www/etc/resolv.conf%0a\ No newline at end of file%0a---%0a> @]%0a\ No newline at end of file%0a host:1615223634=198.251.81.119 author:1613886417=jrmu diff:1613886417:1613882730:=40,52d39%0a%3c Next we set up the conf file:%0a%3c %0a%3c [@%0a%3c $ doas cp /var/www/htdocs/webnews/webnews.conf.example /var/www/htdocs/webnews/webnews.conf%0a%3c @]%0a%3c %0a%3c Then make a few changes to /var/www/htdocs/webnews/webnews.conf:%0a%3c %0a%3c [@%0a%3c $SERVER = 'example.ircnow.org';%0a%3c $WNDIR = '/htdocs/webnews';%0a%3c $BASEURL = '/';%0a%3c @]%0a\ No newline at end of file%0a host:1613886417=198.251.81.119 author:1613882730=jrmu diff:1613882730:1613882613:= host:1613882730=198.251.81.119 author:1613882613=jrmu diff:1613882613:1613881473:=26,27d25%0a%3c Then we need to copy the perl libraries:%0a%3c %0a32,39d29%0a%3c %0a%3c We need to change two lines in /var/www/htdocs/webnews/webnews.cgi:%0a%3c %0a%3c [@%0a%3c BEGIN { $CONFFILE = '/htdocs/webnews/webnews.conf'; }%0a%3c BEGIN { $INSTALLDIR = '/htdocs/webnews'; }%0a%3c @]%0a%3c %0a host:1613882613=198.251.81.119 author:1613881473=jrmu diff:1613881473:1613881022:=24,29c24%0a%3c @]%0a%3c %0a%3c [@%0a%3c $ doas mkdir -p /var/www/usr/local/libdata/%0a%3c $ doas cp -R /usr/local/libdata/perl5 /var/www/usr/local/libdata/%0a%3c @]%0a---%0a> @]%0a\ No newline at end of file%0a host:1613881473=198.251.81.119 author:1613881022=jrmu diff:1613881022:1613881012:= host:1613881022=198.251.81.119 author:1613881012=jrmu diff:1613881012:1613879805:=16,23d15%0a%3c ...%0a%3c cpan[1]> install News::NNTPClient%0a%3c cpan[2]> install News::Newsrc%0a%3c cpan[3]> install Set::IntSpan%0a%3c cpan[4]> install Text::Wrap%0a%3c cpan[5]> install HTTP::Date%0a%3c cpan[6]> install MIME::QuotedPrint%0a%3c cpan[7]> install MIME::Base64%0a host:1613881012=198.251.81.119 author:1613879805=jrmu diff:1613879805:1613879685:=7,15d6%0a%3c @]%0a%3c %0a%3c As normal user:%0a%3c %0a%3c [@%0a%3c $ cpan%0a%3c ...%0a%3c What approach do you want? (Choose 'local::lib', 'sudo' or 'manual')%0a%3c [local::lib] %0a host:1613879805=125.231.57.76 author:1613879685=jrmu diff:1613879685:1613879572:=3,7d2%0a%3c [@%0a%3c $ ftp http://www.dgate.org/webnews/tars/webnews-1.3.1.tar.gz%0a%3c $ doas mv webnews /var/www/htdocs/%0a%3c $ doas chown -R www:daemon /var/www/htdocs/webnews%0a%3c @]%0a\ No newline at end of file%0a host:1613879685=125.231.57.76 author:1613879572=jrmu diff:1613879572:1613879572:=1,2d0%0a%3c First, see the [[openhttpd/perl|perl install]].%0a%3c %0a host:1613879572=125.231.57.76