I am trying to install istSOS following these instructions from the website:
Installation
Install PostgreSQL
$ sudo apt-get install postgresql postgresql-client postgresql-contrib pgadmin3
Install PostGIS
$ sudo apt-get install postgresql-9.1-postgis
Configure PostgreSQL password
$ sudo -u postgres psql
> alter user postgres password 'postgres';
Install Apache2
$ sudo apt-get install apache2
Install mod_wsgi
$ sudo apt-get install libapache2-mod-wsgi
Install psycopg2
$ sudo apt-get install python-psycopg2
Download istSOS and unpack it in /usr/local/istsos
$ 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 services
and logs
$ 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
-
Open
/etc/apache2/sites-enabled/000-default.conf
and add the following lines just before the tag</VirtualHost>
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
http://localhost/istsos/admin
Problem
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?!
Update
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:
Forbidden
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.
Tutorial moved!
There is a new page for the tutorial!
Best Answer
Any reason why you want to access
istsos
admin page on port8080
? I cannot see any reference to this port in the doc you provided.In the doc they say to modify file
/etc/apache2/sites-enabled/000-default.conf
. This file is the default Virtual Host configuration for Apache. It is configured on port80
.From now, it seems you already have a Virtual Host setup to listen on port
8080
. So, open the configuration file for this Virtual Host and do the same you have done for the default one :add the following before the tag
</VirtualHost>
: