[ckan-dev] ckan problems in apache wsgi script

Eugenio Trumpy frippe12573 at hotmail.com
Fri Mar 29 09:37:59 UTC 2013


Good morning,
I'm new ckan user, actually I installed yesterday for the first time.
I followed the online documentation point 2: Install from source.
I think it has gone quite good, I was able to see ckan instance running on 
development server solr on 8983 port.
The next step, ckan deployment gave me some trouble.
I followed the instruction on point 2, so I used my home directory on
server, hence I have pyenv in /home/eugenio/pyenv
the sources are there, and I did all from this directory, and all was
working on solr.
Then I passed at next step, ckan deployment, and I read different directory,
so I tried to adjust the wsgi script with my path, 
I set:
import os
instance_dir = '/home/eugenio'
config_file = '/home/eugenio/pyenv/src/ckan/development.ini'
pyenv_bin_dir = os.path.join(instance_dir, 'pyenv', 'bin')
activate_this = os.path.join(pyenv_bin_dir, 'activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
from paste.deploy import loadapp
config_filepath = os.path.join(instance_dir, config_file)
from paste.script.util.logging_config import fileConfig
fileConfig(config_filepath)
application = loadapp('config:%s' % config_filepath)

and I set a virtalhost in apache as:
ServerName ckan
ServerAlias repoigg
WSGIScriptAlias / /home/eugenio/pyenv/bin/repoigg.py

# pass authorization info on (needed for rest api)
WSGIPassAuthorization On
ErrorLog /var/log/apache2/repoigg.error.log
CustomLog /var/log/apache2/repoigg.custom.log combined

so on the browser I call:
http://my_server_address/repoigg

but I receive 404 error.

What is going wrong?
Could you give my hints?

Thank you very much, 
kind regards

Eugenio


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130329/c74e977a/attachment.html>


More information about the ckan-dev mailing list