Deploy to Local VM

Install Web API Bridge

Overview

  1. Download and extract Web API Bridge
  2. Install Web API Bridge

Download and extract Web API Bridge

$ wget https://webapibridge.org/resources/downloads/WebAPIBridge-latest.tar.bz2
$ tar jxvf WebAPIBridge-latest.tar.bz2

Install Web API Bridge

Note: installing the Web API Bridge will also install the following dependencies using 'apt':

Note: the following Apache modules will also be enabled:

$ cd WebAPIBridge-2.2.4/
$ sudo ./install DOCUMENT_ROOT=/srv/WEB_API_BRIDGE

Create Version Link

$ cd /srv/WEB_API_BRIDGE/WebAPIBridge
$ sudo ln -sf 2.2.4 latest
$ sudo service apache2 restart

Set Apache Hostname

Note: if running the following command produces the 'Could not reliabily determine the server's fully qualified domain name...' warning, you will need to edit the '/etc/apache2/apache2.conf' file.

$ sudo apache2 configtest
$ sudo nano /etc/apache2/apache2.conf

Insert the following at the top of the file - not if you have given your VM a name, you can use that instead of 'localhost'.

ServerName localhost

To save, press CTRL + 'x', then 'y', then ENTER.

Rerunning the Apache2 config test should now show "Syntax OK".

$ sudo apache2 configtest

Enable Serving from /opt

Finally, ensure that Apache allows serving from /opt. Once again, edit the '/etc/apache2/apache2.conf' file, and uncomment the /srv directory clause by removing the '#' characters.

$ sudo nano /etc/apache2/apache2.conf
#<Directory /srv/>
#	Options Indexes FollowSymLinks
#	AllowOverride None
#	Require all granted
#</Directory>

becomes

<Directory /srv/>
	Options Indexes FollowSymLinks
	AllowOverride None
	Require all granted
</Directory>
$ sudo service apache2 restart