Home Build a iboard server
Post
Cancel

Build a iboard server

Install apache2.

1
sudo apt install apache2

Install make.

1
sudo apt install make

Download the iboard repo.

1
git clone https://github.com/Harrison-S1/iboard.git

Move into the iboard dir and install the required perl mods.

1
2
cd CGI-4.51/; perl Makefile.PL; make; make install
cd Date-EzDate-1.16/; perl Makefile.PL; make; make install

Enable CGI on apache.

1
2
cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/cgi.load

or

1
sudo a2enmod cgi

Copy the following files to /usr/lib/cgi-bin/ryansiob .

1
2
3
4
-rwxr-xr-x 3 root www-data   914 Oct 29 15:38 envelope.gif*
-rwxr-xr-x 1 root root     30900 Oct 29 16:26 ryansiob.config.pl*
-rwxr-xr-x 1 root root      8223 Oct 29 15:38 ryansiob.pl*
-rwxr-xr-x 1 root root      2274 Oct 29 15:38 ryansiob.search.pl*

Change the group of envelope.gif.

1
chown root:www-data envelope.gif

Make .pl exacutable.

1
chmod +x /usr/lib/cgi-bin/ryansiob/*

Copy the following files to /usr/local/ryansiob.

1
2
3
-rwxrwx---  1 root     www-data 2229 Oct 29 09:26 allout.pl*
-rwxrwx---  1 root     www-data 1100 Oct 29 16:14 datafile*
-rwxrwx---  1 www-data www-data 1100 Oct 29 17:40 datafile.bak*

Change the group of the perant folder - apache needs to be able to read and write here so change there permissions as well.

1
2
chown -R root:www-data /usr/local/ryansiob/
chmod -R 770 /usr/local/ryansiob/

Create a link for the envelope.gif in the root of the /var/www/html.

1
ln /usr/lib/cgi-bin/ryansiob/envelope.gif /var/www/html/

Check permission have followed.

1
2
-rwxr-xr-x 3 root www-data   914 Oct 29 15:38 envelope.gif*
-rw-r--r-- 1 root root     10918 Oct 29 17:28 index.html.og

The site refreshes every 30 seconds, but does this based on the URL. Change the url with:

1
sed -i "s|localhost/|$HOSTNAME.domain.com|g"

Allow port 80 on the firewall.

1
sudo ufw allow 80

Restart apache.

1
sudo systemctl restart apache2

In the web browser go to:

http://FQDN/cgi-bin/ryansiob/ryansiob.pl

Software source.  Ryansiob  CGI-4.51  Date-EzDate-1.16

This post is licensed under CC BY 4.0 by the author.