Senerio:
I need to deploy Allegrograph 5.0 Triplestore in our lab's virtual server and make it publicly accessible at http://xxx.xx . xxx.edu/agwebview/, I did the "following to do it work."
Need to has a virtual server allocated and Apache2 enabled readily for use, the domain is http://xxx.xx.xxx.edu. This virtual server is hosting a particular project whose backend database was supported by Allegrograph. I would like to has access this database UI at http://xxx.xx.xxx.edu/agwebview/.
I also like Allegrograph because it's super easy, user-friendly and generous to use. (I am fed up with configuring triplestores like Virtuoso and Bigdata nanosparqlserver, why they is made so damn hard to U Se?). Franz Inc. (A company, who releases Allegrograph) allows users, use AG up to 5 million triples under A free licence (whic H is pretty much enough for my project), I'll give you a comparision to understand this 5 million tiples:once I Uploade D a 12Gb rdf/xml file into it and it's around 5.5 Million triples, so we could see that this free licence is pretty gener OUs so, could load somewhat 10Gb RDF data into it.
Another reason I love Allegrograph was that their documentation was super Super well writen!!! Literally, super super well writen! It ' s very clear, very detailled as well. You could just follow it up, very very straightforward.
1. Install allegrograph on Ubuntu:
There was also ways to install it on MAC or windows, but the following link was specific to Ubuntu
Follow this official link:http://franz.com/agraph/support/documentation/current/server-installation.html
2. Start your Allegrograph
Start and stop allegrograph commands'll show up on the terminal at the end of the installation. Please keep them.
Now, start your allegrograph using the start command. So you can see that the AG is running at http://localhost:10035
3. Configure your Apache2
Enable the following Apahce2 Modules:
Mod_rewrite
Mod_proxy
Mod_proxy_http
Mod_proxy_html
By using the following command:
sudo a2enmod rewrite proxy proxy_http proxy_html
ERROR Debugging:
If you see a error:ERROR:Module proxy_html does not exist!
You need to does the following in the terminal
sudo Install libapache2-mod-proxy-html
Then enable are module by
sudo a2enmod proxy_html
You can restart your apache2 now for modules to take effects.
sudo /etc/init.d/apache2 restart# orsudo service apache2 restart# either it works
4. Configure Apache2
Go to/etc/apache2/sites-enabled/directory and open 000-default file
Add the following contents right between </Directory> </VirtualHost>
# The following added by Rui Yan Rewriteengine on ^/agwebview$/agwebview/ [r,l] 1800 proxyrequests Off /agwebview http://localhost:10035 proxypassreverse/agwebview http:// localhost:10035 <Location/agwebview> Order allow,deny allow from all </Location>
5. Restart Your server again
6. Go to Http://xxx.xx.xxx.edu/agwebview/and it ' s there!!!!!!!
Configure allegrograph in a Virtual Server using Apache2