thepug / Speeqe

A multi-user chat application over XMPP.
GNU Affero General Public License v3.0
135 stars 47 forks source link

installation wont work / howto problem.. #17

Open IckZ opened 13 years ago

IckZ commented 13 years ago

Hi, today i tried to set up Speeqe but there seems to be a error in my configuration.

All Modules from the howto are installed. For Bosh I'm using ejabberd's http-bind wich is working very well with muckl for example..

1.1 So Speeqe lies here: /usr/local/src/speeqe/speeqeweb/webroot 1.2 Symlink goes from there to /var/www/vhosts/domain.com/httpdocs/speeqewebclient

2.1 I installed Django and put this into my vhost.conf

<Location "/usr/local/src/speeqe/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE speeqeweb.settings PythonOption django.root speeqeweb/ PythonDebug On

2.2 apache restart

3.1 /usr/local/src/speeqe/speeqeweb/local_settings.py ---> http://pastebin.com/HTW5JkaH 3.2 /usr/local/src/speeqe/speeqeweb/webroot/scripts/local_settings.js

4.1 if i open domain.com/speeqewebclient this is the result ---> http://img809.imageshack.us/i/speeqe.jpg/

Does anyone know what i missed?

kind regards!

thepug commented 13 years ago

I think you have your Location wrong, it should be /usr/local/src/speeqe/speeqeweb. speeqeweb is the directory where the django application lives

IckZ commented 13 years ago

Hey, on which part of the configuration do you mean? I set more than one time this path.

thepug commented 13 years ago

In your apache configuration. Where you have the django config. The there needs to point to the django speeqe application at /usr/local/src/speeqe/speeqeweb

IckZ commented 13 years ago

Location "/usr/local/src/speeqe/" SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE speeqeweb.settings PythonOption django.root speeqeweb/ PythonDebug On /Location

hm.. I think it goes to the speeqeweb dir or?

thepug commented 13 years ago

You are correct, that should work. Are you serving the site all from apache? I'll need to see the rest of you config. http://yourhost.com/speeqewebclient/anonymous.html should work with your current settings.

IckZ commented 13 years ago

ok I think i nearly got it - but also anonymous.html is not working

my apache config: http://pastebin.com/jKbtpN0s

my /usr/local/src/speeqe/speeqeweb/local_settings.py http://pastebin.com/jwvVw7Fb

symlink goes from /usr/local/src/speeqe/speeqeweb/webroot to /var/www/.../speeqewebclient

all together results in this error message:

http://pastebin.com/ZKvqJB0p

it is right that the dir does not exists but where is this setting? Or I'm blind?

thepug commented 13 years ago

You DocumentRoot in apache doesn't seem to point to the correct location. It looks like its using /usr/local/src/speeqe/speeqeweb/webroot.

IckZ commented 13 years ago

thepug you were right :) Now everything works for the moment.

I just have to set up the search room thing but this can wait. I also have to try to autologin the drupal users. Have to check out where to put my vars..

I will report. Tanks a lot!

IckZ commented 13 years ago

//edit

I think django is not working right. I can access anonymous.html and test_client.html but in client.html and for example index.html (after moving to webroot) there are many patterns like : {% block getcred %} {% endblock %}

this is my temp. vhost conf (<< removed):

# #

Location "/usr/local/src/speeqe/speeqeweb/webroot/" SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE speeqeweb.settings PythonOption django.root speeqeweb PythonPath "['/usr/local/src/speeqe/'] + sys.path" PythonDebug On /Location

# #

I also changed the symlink.. The symlink is now in the /usr/local/src/speeqe/speeqeweb/ path and called webroot.. this links directly to the folder in the webroot of the vhost named speeqewebclient

I think there is also a directory failure. The .html files look always in the webroot dir instad of the speeqewebclient directory. I cant belive that this would be a coding problem of the template files.. The error must be in my config..

thepug commented 13 years ago

I think the missing link is to the scripts directory. /usr/local/src/speeqe/speeqeweb/webroot/scripts will have to be served has http://yourhost.com/scripts/

thepug commented 13 years ago

there have been some updates to speeqe to fix some of these issues. please get the latest master.