Tagged Questions
5
votes
2answers
2k views
Matplotlib and WSGI/mod_python not working on Apache
Everything works as supposed to on the Django development server. In Apache, the django app also works except when matplotlib is used. Here's the error I get:
No module named multiarray.
Exception ...
4
votes
2answers
9k views
Why can't I disable .htaccess in Apache?
This is the opposite problem from most about which I have read. I am running Ubuntu 8.04 on an Amazon instance with Apache 2.2.8 and I can't figure out why setting AllowOverride to None for root ...
3
votes
1answer
5k views
404 error while executing .py file in cgi-bin using apache2
previously i had error in installing apache2 for python, this is the link
I thought i should continue there but right now i'm getting a new error so posting it as a new one this is what the problem ...
3
votes
1answer
286 views
Web content filter with Apache + mod_wsgi?
I'd like to write a simple web content filter with flexible filtering rules that are written in Python. The filter is to be used as a forward proxy.
Now, I have trouble choosing the right tools for ...
2
votes
1answer
1k views
Is there a mod_python for Apache HTTP Server 2.2 and Python 2.6 or 3.0?
I poked around the mod_python website and I only found the files for Python 2.5 and earlier for Apache HTTP Server 2.2. I Googled around a little, without significant luck. Any suggestions?
2
votes
2answers
529 views
How to make Apache/mod_python process collect its zombies?
Apache/2.2.6 (Unix) DAV/2 mod_python/3.2.8 Python/2.4.4 configured ...
One of apache processes spawns some long-running python script asynchronously, and apparently doesn't seem to collect its child ...
2
votes
2answers
20 views
Why are my mod_python global variables resetting?
I have a server using apache2 with mod_python that seems to reset global variables after some short period of time. Until this happens, all the features of the server and global variables are handled ...
2
votes
3answers
3k views
Setting up Django with mod_python, Apache on SuSE with Alias
I'm having major problems getting Django working with my Apache configuration. I did not create the server, so I don't have too much leeway as to how the server works. Essentially there are three ...
2
votes
0answers
67 views
django label tag on apache
I've a problem with form rendering on a form which inherits from my own User model.
When the rendering is made in dev, everything is OK.
But in prod, with apache and mod_python, the form is not ...
2
votes
2answers
725 views
How can I configure Apache2/mod_python/Django to abort request processing after N seconds?
I recently spent a long while debugging something that turned out to be an infinite loop bug in my own code. Since I can't guarantee I'll never make that sort of mistake again, how can I configure my ...
1
vote
3answers
3k views
mod_python with apache2, (Re)importing module error
I'm trying to get mod-python to work with apache2 but not having any success. I've followed a few tutorials for getting mod-python working but I can't see what I'm doing wrong.
When I visit ...
1
vote
2answers
605 views
Apache mod_python with django issue
While running a django application on top of apache2 mod_python, I am getting this error message in my apache error log.
[Tue Dec 14 14:26:45 2010] [error] [client SOME_IP] IOError: Write failed, ...
1
vote
1answer
253 views
How to set up Apache server via an FTP account
I have developed a web application in Django and would like to go online i have an FTP access to the hosting server I am a beginner to "setting up a website" i would like to know how to install apache ...
1
vote
1answer
471 views
Getting PSP and Publisher handler working together in Apache2 mod-python
I could just have mod-python working on apache2 for the first time and I could play with PSP and Publisher handler a little by adding either
AddHandler mod_python .py
PythonHandler ...
1
vote
1answer
473 views
mod_python no module named _apache
I am trying to run a python program which I have downloaded. It requires mod_python so I installed the latest version from source.
I am also running Python 2.7 on Ubuntu 12.04.
When I run the python ...
1
vote
1answer
410 views
2 django sites on 1 apache virtual host with django login
I have 2 sites, both require login ( I'm using the django provided django.contrib.auth.views.login). When I enter http:// url /siteb , I am redirected to accounts/login and siteb is taken out of the ...
1
vote
1answer
401 views
UserDir on a django server
I have a django website running with mod_python and Apache. The current configuration directs all / traffic to the django site. Now, I need to enable userDir /~user on the machine as well. I have ...
0
votes
2answers
3k views
django - ImportError: No module named modpython
I'm trying to setup django on my vhost and got stuck on this error:
MOD_PYTHON ERROR
ProcessId: 4496
Interpreter: 'ouiop'
ServerName: 'ouiop.com'
DocumentRoot: ...
0
votes
1answer
757 views
mod_python not detecting files when using open()
I am trying to open a file I have in my /var/www/ directory named cardlist.xml.
this is the code I am using.
import cgi
import os
open("./cardlist.xml", "r")
def crawlXml():
return 0
My error ...
0
votes
1answer
1k views
Error in starting apache2 server while configuring for python
Hello i'm trying to configure apache2 server for python, i used this command to install apache2:
sudo apt-get install apache2
cd /etc/apache2/mods-enabled/
sudo ln -s ...
0
votes
2answers
243 views
Sending a request to retrieve the data from Django
I am doing a Web project, where I am using HTML5 and Django to store database in sqlite3. The part being, since I had to use python, I installed mod_python for apache2. Now the thing is I went through ...
0
votes
1answer
332 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
1answer
196 views
How do I implement a mod_python style authenhandler/authzhandler using mod_wsgi?
I have a simple mod_python script that provides authentication and authorization for a large static website. We're migrating from CentOS 4 to Scientific Linux 6 and I discover that mod_python isn't ...
0
votes
0answers
55 views
Why does python not working?
I don't know why python isn't working with apache in ubuntu.
I've got python and libapache2-mod-python installed.
My default config file:
Options Indexes FollowSymLinks MultiViews
AlowOverride None
...
0
votes
1answer
824 views
Getting Error when trying to setup mod_python [closed]
After installing mod_python and changing the /etc/apache2/sites-available/default file.I am getting following error when I try to run
tail -f /var/log/apache2/error.log
ai-System-Product-Name ...
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
1answer
184 views
my website urls via apache2 dont work
my first question for this site, i hope it goes well!!
I have, ubuntu, apache2, python, django and mod_python.
All is installed properly.
I have created a website project which works properly when i ...
0
votes
1answer
273 views
mod_python not working correctly
I recently installed mod_python to use with Apache2. But, instead of displaying a python page, it asks me to download it. I followed the instructions here:
...
0
votes
1answer
546 views
How to use Mercurial to deploy Django applications?
I'm creating a server with Apache2 + mod_python + Django for development and would like to know how to use Mercurial to manage application development.
My idea is to make the folder where the ...
0
votes
1answer
140 views
Have problems installing mod_python
I seem to have some problems installing mod_python with apache.
./configure --prefix=/usr/local/apache2
make
make install
/usr/local/apache2/bin/apachectl start
On the final line, I seem to get ...
0
votes
1answer
369 views
Mod_python on django and debug variable
I have a problem with my django application. On django developer server its work perfect, but when I switch it to apache something strange happening. Lets check the code:
class ...
0
votes
1answer
613 views
correct configuration for apache and mod_python
hi all, how you must configure Apache 2.2 or mod_python?, to avoid the following error:
MOD_PYTHON ERROR
ProcessId: 5399
Interpreter: '127.0.1.1'
ServerName: '127.0.1.1'
DocumentRoot: ...
0
votes
1answer
172 views
modpython django basic auth handler does not pass user to view
I'm using django with apache mod_python. I authenticate users via the basic auth handler (django.contrib.auth.handlers.modpython) [1]. My views get only an instance of AnonymousUser passed in ...
0
votes
1answer
444 views
mod_python req.subprocess_env not “seeing” PythonOptions
I'm having trouble getting an environmental variable out of apache config. (don't ask why it's being done this way, I didn't originally code it)
This is what I have in the apache config.
...
0
votes
2answers
302 views
Problem to make an apache server run correctly under mod_python
We try to migrate our old server to a new one but we experienced some problems with mod_python.
The problem is under this web page:
http://auction.tinyerp.org/auction-in-europe.com/aie/
Here is ...
-1
votes
2answers
209 views
Test page for mod_wsgi
mod_python has a test page script which emits information about the server configuration. You can put
SetHandler mod_python
PythonHandler mod_python.testhandler
into your .htaccess and it displays ...