mod_wsgi is an easy to use Apache module that can host Python web applications which support the Python WSGI interface.

learn more… | top users | synonyms

0
votes
2answers
144 views

ubuntu linode server 404 error with django mod_wsgi [closed]

I have configured a linode server with apache2 and mod_wsgi.. the server is running wsgi is running postgre is running and syncdb was successful what I am having trouble finishing is actually ...
1
vote
1answer
118 views

Apache2/mod_wsgi mod_headers issue

I'm running mod_wsgi on Ubuntu Server 12.04 with Django, but I can't seem to get mod_headers working. I've run a2enmod headers, and got the response that I need to restart apache for it to work, which ...
1
vote
2answers
152 views

django + apache2, each user takes up a lot of memory

I'm running my django app on apache2 (with mpm prefork) with a mysql database. It works fine, except when multiple users use it, and it takes around 40-45m RES for each user. httpd.conf: ...
0
votes
1answer
51 views

Issue configuring Apache virtualHost with modwsgi

Hello i have a problem configuring apache with Virtualhosts and ModWSGI, see i want to run a Python Script when i access to the domain, but it keeps showing me the content of my folder instead ...
1
vote
1answer
143 views

Non-responsive apache + mod_wsgi after installing scipy

I am currently running a Centos 6.4 server, with Apache 2.2.15 and mod_wsgi 3.2. The server is hosting a django-based site (django 1.5.1, python 2.6.6). Everything was running fine until I installed ...
0
votes
2answers
196 views

Files over 100kb not served using, nginx proxy, apache, mod_wsgi

Files over 100kb not served using, nginx proxy, apache, mod_wsgi We are in the process of migrating a site to a new server. We have the site with virtualenv set up, apache modwsgi is installed and ...
0
votes
1answer
492 views

Django mutli-threading on apache/mod_wsgi/windows

I am quite new to the combination of apache and django and quite naive frankly regarding to how multi-threading is handeled. Specifically I run on a windows server, so I know the MPM is only ...
0
votes
0answers
23 views

Compiling mod_wsgi on MacOSX with EPD Python

I'm trying to compile mod_wsgi 3.4 on MacOSX 10.7.4 with the Enthought EPD Python distribution, which I require to do some mathematical modelling from the web server. I run configure using: ...
0
votes
1answer
149 views

apache2: two virtual hosts interfere

I am a developer, not a sys-admin :) I always have been running multiple vhosts in parallel on different ports, but this time something is interfering. I have one vhost which runs a python-based ...
1
vote
1answer
134 views

mod_wsgi : share daemon processes between vhosts

I have many sites each using the same 5 Django applications (with local settings), hosted on Apache. At present each site app has its own config as follows: WSGIDaemonProcess api_example threads=15 ...
1
vote
2answers
2k views

Kernel 3.8, Apache2 with WSGI : INFO: task apache2 blocked for more than 120 seconds

We have upgraded our Kernel from 2.6.32 to 3.8.7 on a Debian system. We have a sharing with NFS to get the data for Apache2. And Nginx serves only static files as a proxy. Since we have installed the ...
0
votes
1answer
617 views

centos 6.4 - django deploy with apache and mod_wsgi

I'm trying to deploy on a VM with centos 6.4 a basic django project with apache and mod_wsgi. This is the project tree: myproj/ ├── manage.py ├── myapp │   ├── __init__.py │   ├── models.py │   ├── ...
0
votes
1answer
287 views

Troubleshooting mod-wsgi thread dying

A WSGI daemon on our public-facing web server died and required reloading apache configuration to start it again. All the error.log says is: Script timed out before returning headers: wsgi.py (and ...
0
votes
1answer
38 views

Python app with wsgi apache2 returns *.py file content

I have a small Flask app that I managed to get running using apache2 and mod-wsgi. I set it up to run on a subdomain like test.example.com The app is in /var/www/flasktest . Now if I go to ...
1
vote
0answers
303 views

NGINX and OpenStack Horizon?

I recently update our web infrastructure to use NGINX instead of our Apache servers. Now, I'm also operating an OpenStack Infrastructure and I was wondering if there is a state of the art way to ...
0
votes
1answer
70 views

mod_wsgi Causing httpd to Segmentation Fault

I have just installed python2.6 and mod_wsgi on my MediaTemple CentOS5.8 server. I had to install python2.6 along side the default python version of 2.4. I then compiled mod_wsgi telling it to use ...
0
votes
1answer
310 views

Upgrading from Django 1.3 (Python 2.6) to Django 1.5 + Python 2.7 CentOS

We currently have a server running python2.6 + apache and mod_wsgi that runs with Django 1.3. I plan to use the following guide to install python 2.7 ...
2
votes
0answers
236 views

WSGI/APACHE - “ImportError: No module named site”

I am trying to get a django website up and running using WSGI. The box is running centos 5 with python 6. I am attempting to use the anaconda distribution from continuum analytics installed in ...
0
votes
1answer
126 views

mod_wsgi daemon mode not working in Apache

I have problems getting mod_wsgi to run in daemon mode on my Debian / Apache 2.2.16 / Python 2.6.6 / mod_wsgi 3.3 / Django 1.3 setup. Everything works OK in embedded mode, but when I try to switch to ...
2
votes
1answer
509 views

Causes of crash doing matrix multiply in Python/mod_wsgi/apache app

I am building a web app using Python 2.7, its bottle micro framework, and apache (via mod_wsgi). This app has some RESTish endpoints, one of which results in a connection error in the browser (Firefox ...
0
votes
1answer
64 views

Deploy a Django site and a PHP site on the same server with Apache and mod_wsgi

I currently have a Django site working at cinepass.com.ec , I would like to deploy an additional PHP site to the same server at mobile.cinepass.com.ec My current httpd.conf (from DjangoFoo) : ...
0
votes
1answer
472 views

Apache django mysql very slow

I am using Django, wsgi with apache, but the server is really slow when I try to insert data into mysql server. It takes 1 second to insert 200 rows in a table. The strange thing is that only 3% of ...
0
votes
2answers
185 views

CherryPy 3 with Apache 2 using ModWSGI: stack traces?

I am trying to show stack traces or at least some sort of errors rendered to the HTML response while using a WSGI script. A ModuleNotFound exception is raised when I tried to import a module the ...
1
vote
1answer
154 views

only django work in presence of mod_wsgi , PHP not working

I am using PHP with apache2 and MySQL on a rackspace server, it is unmanaged cluoud hosting. I am hosting multiple sites using virtual host. Now i want to use Django on it. A site needs django so I ...
4
votes
1answer
145 views

Restrict WSGI based on IP

So I have trac running on my debian server with the VirtualHost file looking like: ... WSGIScriptAlias / /srv/domain/trac.wsgi WSGIScriptReloading On <Directory /srv/domain/tracprojects> ...
0
votes
1answer
370 views

How to get apache to use python 2 with mod_wsgi?

I have an Arch Linux server that used to use Python 2.7.3 just fine with Apache and mod_wsgi-3.4-2. I have both Python 2.7.3 and 3.3.0 installed on the server, and both executables are located in ...
1
vote
1answer
263 views

Configuring mod_wsgi to use Python 2.7

I am trying to configure mod_wsgi to use Python 2.7. I downloaded and unpacked the source and ran ./configure --with-python=/usr/local/bin/python2.7 After this mod_wsgi.so-2.4 and mod_wsgi.so-2.5 ...
1
vote
1answer
48 views

Closing open descriptors in apache2 prefork

I am running mod_wsgi and Django on apache2 httpd 2.2.12. I do quite a few os.system() and subprocess.Popen() calls, and was wondering: is there any option/directive to configure apache2 so that the ...
0
votes
0answers
150 views

Getting error while installing mod_wsgi in centos

I have reinstalled python with enable shared [root@master mod_wsgi-3.4]# make clean rm -rf .libs rm -f mod_wsgi.o mod_wsgi.la mod_wsgi.lo mod_wsgi.slo mod_wsgi.loT rm -f config.log config.status rm ...
0
votes
0answers
75 views

mod_wsgi -apache configuration file

guys sorry I'm a newbie to this but I've been following the mod_wsgi configuration tutorial and it's very spotty. In my httpd.conf file I add the virtual host like so: # 'Main' server configuration # ...
0
votes
1answer
45 views

Is there any way to isolate the python2.7 , mod_wsgi installation from main environment

I have many local virtual machines for building the django websites. I find it very hard to configure all the machines with mod_wsgi , python and all that installation issues. Is there any way that i ...
2
votes
1answer
651 views

Getting error while install mod_wsgi on centos6.3 with python 2.7

In initially installed yum install mod_wsgi and i think it was linked with python 2.6 Now is there any way to link it with 2.7 I tried configuring from the source and i get this error apxs -c ...
1
vote
1answer
609 views

ImportError: No module named _socket? WSGI Deployment into Apache

I am using WSGI 3.3 for python 2.7.3 (32bit) for Apache 2.2. I got the binary WSGI from http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-win32-ap22py27-3.3.so. I have been trying to ...
1
vote
1answer
231 views

Restarting or stopping apache results in waiting forever

I have two simple WSGI apps running on top of mod_wsgi and apache2 (worker) on a test development server. There is no mod_python on this machine. The WSGI configuration is as follows ...
2
votes
0answers
85 views

Error importing python modules in mod_wsgi [closed]

We are trying to get out wsgi application working on mod_wsgi. We have run it before using wsgiref.simple_server, as a debugging environment. Now, we want to move it over to using Apache httpd to ...
1
vote
3answers
136 views

Apache2 return 404 for proxy requests before reaching WSGI

I have a Django app running under Apache2 and mod_wsgi and, unfortunately, lots of requests trying to use the server as a proxy. The server is responding OK with 404 errors but the errors are ...
3
votes
0answers
698 views

Incorrect deployment of WSGI app to AWS using Elastic Beanstalk

cross-link to AWS forums I have developed a simple Python web service using WSGI and would like to deploy it to AWS cloud using Elastic Beanstalk. My problem is I cannot make all the options I ...
2
votes
1answer
118 views

Configuring wsgi for a simple Python based site

I have an Ubuntu 10.04 server that already has apache and wsgi working. I also have a python script that works just fine using the make_server command: if __name__ == '__main__': from ...
0
votes
2answers
580 views

Permission issue for apache

Environment Details: Amazon Ec2 Ubuntu 12.04 Django + mod_wsgi + python 2.6 web server: apache2 I have mounted a 10GB ebs volume to an instance to /mnt/ebs1/. After mounting the volume and ...
1
vote
2answers
774 views

Apache - Difference between ScriptAlias and WSGIScriptAlias

I'm using apache on RHEL Linux server In my /etc/httpd/conf.d/httpd.conf there are two directives: WSGIScriptAlias /apps /var/www/apps <Directory /var/www/apps > Options MultiViews ExecCGI ...
4
votes
3answers
1k views

Apache won't restart after inserting mod_wsgi [closed]

Python interested me as a web scripting language so I wanted to set it up on my testing server. Cannot get Apache to restart with mod_wsgi. Running xampp v win32-1.8 w/apache v2.4, python v2.7 ...
2
votes
2answers
166 views

Location Directive overrides mod_wsgi script alias mount

So I'm stymied. I have a webapp that uses Django and I'm using mod_wsgi to integrate it with apache. However, another person has a directive on the same machine that proxies to another server. The ...
1
vote
2answers
1k views

Can't locate API module structure `mod_wsgi'

I'm working on setting up Trac to use wsgi, and am running into trouble getting mod_wsgi working. I downloaded and installed mod_sgi. [box]# apachectl configtest httpd: Syntax error on line 214 ...
4
votes
2answers
626 views

Deploying Django App with Nginx, Apache, mod_wsgi

I have a django app which can run locally using the standard development environment. I want to now move this to EC2 for production. The django documentation suggests running with apache and ...
0
votes
1answer
207 views

Using mod_wsgi with mpm_itk: socket permission issue

I'm using mod_itk as MPM for increased security in shared environment. I also have a Firefox Sync Server within one of the VHosts I host. That vhost is restricted to a certain user via AssignUserId ...
0
votes
1answer
84 views

Loading Module Into Apache - mod_wsgi

Loading Module Into Apache Once the Apache module has been installed into your Apache installation's module directory, it is still necessary to configure Apache to actually load the module. ...
1
vote
0answers
80 views

Modifying httpd.conf to adjust for mod_wsgi and django install then cannot connect via sftp

I modified my httpd.conf file to point to a .wsgi file that I made directing apache to different document root. The server works fine, I see my application live on the net and I am still connected via ...
1
vote
1answer
439 views

Configuring varnish and django (apache/modwsgi)

I am trying to work out why my application keeps hitting the database while I have setup varnish infront of apache. I think I am missing some vital configuration, any tips are welcome This is my curl ...
0
votes
2answers
1k views

Python: ImportError: No module named os [closed]

error_log ... [Fri Sep 07 16:30:14 2012] [error] import os [Fri Sep 07 16:30:14 2012] [error] ImportError: No module named os -shell- [root@lts5srv1 home]# ldd /root/epd-5.1.0/bin/python ...
1
vote
0answers
154 views

Apache will not start with mod_wsgi enabled

I'm trying to run Apache with mod_wsgi to run Python scripts. The server is running Ubuntu 12.04 with Zend Server installed, but when I enable the wsgi module Apache will not start. I get an error ...