Re: mod_wsgi setup

2013-11-15 Thread Fred Stluka
tino, Didn't need the WSGIPythonHome setting in Apache, eh? Interesting... --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Glad to be of service! Ope

Re: mod_wsgi setup

2013-11-15 Thread tino
Thank you Fred for your help. Finally I got it working. I tried different things and this is how my files looks now. spark.wsgi = import os import sys sys.stdout = sys.stderr # Add the virtual Python environment site-packages directory to the path import site site.addsitedir('

Re: mod_wsgi setup

2013-11-15 Thread Fred Stluka
tino, I have a working setup, using Apache mod_wsgi on AWS Linux. Try adding the location of your virtual env to to your Apache settings. Something like: == WSGIPythonHome /var/python27/virtualenvs/hhl == If that doesn't help, here are some more though

Re: mod_wsgi setup

2013-11-15 Thread tino
Thank you guys for the suggestions. But selinux is already disabled in the server. [root@lampserver spark]# getenforce Disabled Also I tried to set DEBUG = False in settings.py. That also did not help. On Friday, November 15, 2013 3:04:58 PM UTC+5:30, tino wrote: > > Hello, > > I am tryin

Re: mod_wsgi setup

2013-11-15 Thread Timothy W. Cook
BTW: HEre is an old tutorial regarding SELinux and WSGI apps. It may be useful? http://www.packtpub.com/article/selinux-secured-web-hosting-python-based-web-applications On Fri, Nov 15, 2013 at 8:17 AM, Timothy W. Cook wrote: > On centos 6 I had (still have) problems similar to this due to SEL

Re: mod_wsgi setup

2013-11-15 Thread Timothy W. Cook
On centos 6 I had (still have) problems similar to this due to SELinux restricting Apache from accessing the application. Even after rechecking permissions SELinux doesn't want to allow a user to access another users (specifically setup for the application) home directory. You can test if this i

Re: mod_wsgi setup

2013-11-15 Thread Liam Thompson
The "Requested setting DEBUG" says you've requested DEBUG but it's not setup. I don't think you would want DEBUG in production, so try to turn that off in the settings file. On Friday, 15 November 2013 11:34:58 UTC+2, tino wrote: > > Hello, > > I am trying to setup a python 2.7 + Django + virtu

mod_wsgi setup

2013-11-15 Thread tino
Hello, I am trying to setup a python 2.7 + Django + virtualenv + mod_wsgi environment in my centos 6.3 server to run my python application through apache. But I am getting internal error while trying to access the application through apache. The error log shows the following. [Fri

Re: mod_wsgi setup issue

2010-08-28 Thread Timothy Makobu
here is my config: *** [m...@web101 www]$ cat myproject.wsgi import os import sys sys.path = ['/home/mako/webapps/www'] + sys.path from django.core.handlers.wsgi import WSGIHandler os.environ['DJANGO_SETTINGS_MODULE'] = 'timssite.settings' application = WSGIHandler() *** that's right outside th

Re: mod_wsgi setup issue

2010-08-28 Thread Robbington
I use a Cherokee, Uwsgi setup. It really takes the hassle out of it as the Cherokee admin interface just has a wizard that you point to the uwsgi.xml file. On Aug 28, 7:53 am, Graham Dumpleton wrote: > On Aug 28, 2:48 pm, Joel Klabo wrote: > > > All the files are shown here:http://gist.github.co

Re: mod_wsgi setup issue

2010-08-27 Thread Graham Dumpleton
On Aug 28, 2:48 pm, Joel Klabo wrote: > All the files are shown here:http://gist.github.com/554724 > > I don't know what I'm doing wrong but I'm still getting 500 Go look in the Apache error log for the reason for the error and post that here. Better still, go watch the mod_wsgi presentation l

Re: mod_wsgi setup issue

2010-08-27 Thread Kenneth Gonsalves
On Fri, 2010-08-27 at 21:48 -0700, Joel Klabo wrote: > All the files are shown here: http://gist.github.com/554724 > > I don't know what I'm doing wrong but I'm still getting 500 maybe you could try: sys.path.append('/srv/www/brooski.net/') os.environ['PYTHON_EGG_CACHE'] = '/srv/www/brooski.n

mod_wsgi setup issue

2010-08-27 Thread Joel Klabo
All the files are shown here: http://gist.github.com/554724 I don't know what I'm doing wrong but I'm still getting 500 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsub