$ sudo apt-get install postgresql postgresql-client postgresql-contrib pgadmin3
$ sudo apt-get install postgresql-9.1-postgis
Configure PostgreSQL password
$ sudo -u postgres psql > alter user postgres password 'postgres';
$ sudo apt-get install apache2
$ sudo apt-get install libapache2-mod-wsgi
$ sudo apt-get install python-psycopg2
Download istSOS and unpack it in
$ wget http://istsos.googlecode.com/files/istSOS-2.0.tar.gz
The download location actually has changed to SourceForge.
$ sudo tar -zxvf istSOS-2.0.tar.gz -C /usr/local/
Set executing permission and owner for the folders
$ sudo chmod 755 -R /usr/local/istsos $ sudo chown -R www-data:www-data /usr/local/istsos/services $ sudo chown -R www-data:www-data /usr/local/istsos/logs
Configure Apache and WSGI
/etc/apache2/sites-enabled/000-default.confand add the following lines just before the tag
WSGIScriptAlias /istsos /usr/local/istsos/application.py Alias /istsos/admin /usr/local/istsos/interface
Restart apache2 server
$ sudo /etc/init.d/apache2 restart
Check the installation success on the browser loading the page
However, the webserver returns
Unable to connect.
When I try
http://localhost:8080/istsos/admin instead I receive:
Not Found The requested URL /istsos/admin was not found on this server.
Searching for an answer
As suggested by krisfr I try to find out why the server responds on port 8080 instead of port 80.
$ apache2ctl -t -D DUMP_VHOSTS VirtualHost configuration: *:80 is a NameVirtualHost default server localhost (/etc/apache2/sites-enabled/000-default.conf:1) port 80 namevhost localhost (/etc/apache2/sites-enabled/000-default.conf:1) port 80 namevhost localhost (/etc/apache2/sites-enabled/000-default.conf:1)
There seems to be no configuration for this?!
I extracted the Apache/Port problem into another question and received a helpful answer. Then I configured the server to listen to port 80 and restarted the server. When I access
http://localhost/istsos/admin I receive the following message:
You don't have permission to access /istsos/admin on this server.
Apache/2.4.6 (Ubuntu) Server at localhost Port 80
The owner settings for the folders are set as the instructions tell. I found alternative installation instructions for istSOS which I still have to understand but I already want to share with you.
There is a new page for the tutorial!