0
votes
2answers
1k views

How to run python script which require root privilage for execution in apache with mod_python at openbsd

I am trying to run python script in Apache 2.x with mod_python. I edited httpd.conf with publisher LoadModule python_module /usr/local/apache2/modules/mod_python.so <Directory ...
0
votes
1answer
320 views

ImproperlyConfigured: Requested setting MIDDLEWARE_CLASSES, but settings are not configured

i am confuring the apache mod_wsgi to django project and here is my djangotest.wsgi file import os import sys sys.path = ['/home/pavan/djangoproject'] + sys.path os.environ['DJANGO_SETTINS_MODULE'] ...
0
votes
0answers
121 views

Execute Python script from apache as a root

I am using mod_python for executing a Python script from Apache 2.2.x at OpenBSD 5.1. I am successfully running a Python script which does not require root privilege. But I am executing several ...
0
votes
0answers
126 views

Element Tree Python not working with python2.6

We are trying to fetch an RSS Feed and than trying to parse it using ElementTree. Its working fine when I use python2.7 but is crashing Apache if the python version is 2.6. Below is the code urlres = ...