Questions tagged [mod-wsgi]
mod_wsgi is an easy to use Apache module that can host Python web applications which support the Python WSGI interface.
402
questions
1
vote
3
answers
2k
views
Ubuntu upgrade broke django mod_wsgi
I'm banging my head here and can't seem to find the answers anywhere.
My server is running Ubuntu 14.04. I run several django sites using apache and mod_wsgi Today after an update, the sites will ...
0
votes
1
answer
417
views
How to point Ubuntu 14.10 Apache2 (mod-wsgi) server to a specific virtual environment (Python 3.4 / Flask)?
I am running apache2 (mod-wsgi) on Ubuntu 14.10. I am getting 500 Internal Server Error when serving my web-site. I am also using Flask and Python 3.4, and virtual environment. It appears that Ubuntu ...
2
votes
0
answers
2k
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 2.6.
I am attempting to use the anaconda distribution from continuum analytics installed in /...
1
vote
2
answers
486
views
Trac/Apache Displays Script Contents (WSGI)
I am struggling with a new Trac 1.0.3 install (from source after having same issue installing via easy_install).
Debian 7.8
Apache 2.2.22
Python 2.7.3
Genshi 0.6
Sqlite 3.7.13
WSGI 3.3
I created the ...
1
vote
1
answer
979
views
strange strace output of httpd process of apache running django with mod_wsgi
I have about 12 httpd processes running for an RHEL aws box that no one is hitting in the browser (shared team dev box). These processes together are consuming over 1.8 GB on the dev box, and I have ...
1
vote
1
answer
374
views
MOD_WSGI Daemon Mode multiple hanging httpd processes
As a python developer I had some understanding of how mod_wsgi works, which is that it launches a new python process with each request. That is not to say a new httpd process, rather a single httpd ...
3
votes
1
answer
33k
views
apache2.4 virtual host blocking access with authz_core log, even though authz not configured
So I'm getting 403: Forbidden errors on one of my apache2.4 virtualhosts.
What's interesting, is that /var/log/apache2/error.log reports:
authz_core:error] [pid 4878:tid 140394394269440] [client 10....
1
vote
0
answers
27
views
Is there an automated installer/manager for mod_wsgi 3.4?
# yum --showduplicates list mod_wsgi | expand
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirror.cov.ukservers.com
* epel: mirrors.coreix.net
* extras: centos.serverspace.co....
0
votes
0
answers
2k
views
Cannot load /etc/httpd/modules/mod_wsgi.so into server: libpython2.7.so.1.0
I've been working for the past 2 days trying to get mod_wsgi setup properly so it will work with my virtualenv and Django site in Python 1.7.
[root@server mod_wsgi-3.4]# service httpd restart
...
1
vote
1
answer
1k
views
Installing mod_wsgi error - config.status: error: cannot find input file: Makefile.in [closed]
Below, I'm trying to install mod_wsgi.
[root@server]# ./configure --with-python=/usr/local/bin/python2.7
checking for apxs2... no
checking for apxs... no
checking Apache version... ./configure: line ...
1
vote
1
answer
552
views
apache fails to load mod_wsgi: complains of 'missing symbol'
When I run apachectl configtest after installing mod_wsgi I get the following error message:
httpd: Syntax error on line 117 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/...
3
votes
1
answer
2k
views
Python background task thread lock error with mod_wsgi
I have a small python web application built on the Flask framework and deployed with mod_wsgi to apache. The application is scheduling a background task with apscheduler that runs every couple of ...
4
votes
1
answer
3k
views
How can I make apache give the config file path and line number for a 403 error
I'm running Apache 2.4.7 on debian unstable. I'm getting 403 errors when I try to run supysonic using the mod_wsgi module. I turned the LogLevel for wsgi and authz_core up to trace6, but I'm still ...
3
votes
2
answers
4k
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
...
27
votes
2
answers
22k
views
How many processes should I specify in a WSGIDaemonProcess while running Django through mod_wsgi?
Let's say I have 2 sites(Superuser and Serverfault) running from their own Apache virtual host on one box. The 2 sites are powered by Django and are running on Apache with mod-wsgi. A typical ...
1
vote
2
answers
5k
views
Tuning django based site deployed using apache wsgi for better performance
I'm running django application using apache+mod_wsgi, I have setup 6 medium ubuntu servers on Amazon ec2 in which 2 for mongo and 4 for django and apache, using ebs for postgresql and configured a ...
0
votes
0
answers
109
views
scrapping not working Django+Apache+wsgi Production server
I developed a django app which uses beautifulsoup4 and urllib2 to parse the data from webpages.It was working well on my development server but when I put the same on Apache+wsgi server, the scrapping ...
0
votes
1
answer
2k
views
Limit a form post size with Apache / Django - clarification
There is already an answered question on this topic:
Limit a form post size with Apache / Django
but I'm not sure what this means: "If, for example, you are permitting file upload to a particular ...
2
votes
2
answers
913
views
Setup Apache + mod_wsgi: incorrect function
I'm trying to setup an apache http server with mod_wsgi on a windows machine, but when I start the service, it fails to launch.
In the Windows Event Log I get the following message:
The Apache2 ...
0
votes
1
answer
2k
views
How to reinstall python2.7 on CentOS 6 in order to install mod_wsgi [closed]
I've installed Python2.7 from source on a CentOS 6 VPS, and I'd like to get a Django site up and running. Unfortunately, everything I've Googled so far says that I'll need to install mod_wsgi, which ...
2
votes
2
answers
515
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 ...
2
votes
0
answers
608
views
Configuring mod_wsgi daemon mode processes and threads
I am planning to use mpm_worker or mpm_event with daemon mode of mod_wsgi. How to configure processes and threads of WSGIDaemonProcess directive for the optimal performance of apache 2.4.9
2
votes
2
answers
2k
views
Deploying Django with mod_wsgi
/etc/apache2/site-available/mysite.com
<VirtualHost my_ip_here:80>
ServerAdmin [email protected]
ServerName mysite.com
ServerAlias www.mysite.com
WSGIScriptAlias / /srv/www/...
1
vote
1
answer
3k
views
django wsgi multiple projects different url same apache server
I'm trying to get 2 separate django projects running on the same apache server with mod_wsgi that are also under the same domain but different urls. Like www.example.com/site1/ and www.example.com/...
0
votes
2
answers
131
views
Cent OS + Apache2 + mod_wsgi error
I have a development server for my Django application running Cent OS 6. I'm serving the application using Apache and mod_wsgi. I read a lot about the default Python that comes with Cent and so I ...
1
vote
0
answers
2k
views
Apache periodically shutting down once per week
I'm using apache (with mod_wsgi and django), and everything works fine, except rather strangely once per week apache seems to shutdown, and I have to login to the server to restart it to get my sites ...
2
votes
1
answer
862
views
Does mod-wsgi automatically spin up again when apache restarts?
I was reading through here:
https://code.google.com/p/modwsgi/wiki/ReloadingSourceCode
We have a python app hosted over a wide array of load-balanced servers, and sometimes it takes a long time for ...
1
vote
1
answer
719
views
How to install mod_wsgi 3.1 on Ubuntu 9.10
I have a Python 3 web app so mod_wsgi < 3.1 doesn't cut it for me. However, on my Ubuntu 9.10 installation there doesn't seem to be a package for mod_wsgi 3.1.
Is there an alternative repository ...
0
votes
1
answer
2k
views
mod wsgi picks up wrong libpython2.7.so.1.0
I've compiled python 2.7.8 with:
mkdir -p /usr/local/python2p7/lib
./configure --prefix=/usr/local/python2p7 --with-threads --enable-shared LDFLAGS="-Wl,-rpath /usr/local/python2p7/lib"
make
make ...
0
votes
0
answers
2k
views
Serving static files through apache
I am new to the whole mod_wsgi and serving files through apache. I am really comfortable with flask but this is something i can't get my head around. I did the hello-world program and successfully ...
0
votes
1
answer
187
views
configured apache to host pyramid app, but restarts dont show changes
I have a pyramid application that I want to host using Apache. I started off by sucessfully getting a blank application to run - I used pyramid's starter scaffold to create a basic app then I ...
0
votes
1
answer
893
views
Configuring Apache with Django
I'm trying to configure Apache with Django. Everything is working except the admin panel. It's static files are not loading. The documentation talks about different ways of doing it but none are ...
2
votes
2
answers
673
views
What are the problems of setting MaxRequestsPerChild to 1 of mpm_prefork module
For my application I had to have this configuration for it works :
<IfModule mpm_prefork_module>
MaxRequestsPerChild 1
</IfModule>
What are the problem that I can encounter with ...
0
votes
1
answer
2k
views
Apache and mod_wsgi, worker process stuck to W state, request never dies. How to diagnose?
I am running Apache 2.2 with mod_wsgi, Python 2.7 and mpm_worker. Occassionally, one of the worker processes gets stuck and all of it threads stop in writing state (as demostrated in the screenshot ...
0
votes
1
answer
1k
views
Django, Ubuntu, Apache, mod_wsgi
I'm trying to configure apache with django on Ubuntu 12.04. I'm using mod_wsgi. I used a couple of different tutorials but none of them fully worked for me. Frustrated, I installed nginx without ...
0
votes
1
answer
479
views
Error starting mod_wsgi
When I run the start-server command on mod_wsgi-experess, I get this output:
Server URL : http://localhost:8000/
Server Root : /tmp/mod_wsgi-localhost:8000:0
Server Conf : /tmp/mod_wsgi-...
0
votes
3
answers
2k
views
Apache: 403 Forbidden for WSGIScriptAlias
I am trying to install istSOS following these instructions from the website:
Installation
Install PostgreSQL
$ sudo apt-get install postgresql postgresql-client postgresql-contrib pgadmin3
Install ...
0
votes
2
answers
2k
views
Enabling SPDY for nginx as reverse proxy to Apache
I am running nginx as a reverse proxy to apache (with mod_wsgi for a django app). nginx also serves static files. If I enable spdy on nginx, do I need to enable spdy on apache too to get maximum ...
5
votes
3
answers
7k
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 32bit,...
1
vote
0
answers
664
views
Apache bloodhound installation, AWS host not serving site
Following the installation instructions here I went through the entire process on an AWS instance. Everything seems to be setup correctly, I can even run BH off the development server using:
tracd ./...
1
vote
1
answer
1k
views
How to configure Apache with mod_wsgi so that error messages come from the application?
I have deployed a WSGI application in Apache2 with mod_wsgi.
The application is made so that it responds with a 400 response code if the data provided by the user in a form is invalid. The ...
2
votes
2
answers
5k
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
1
answer
949
views
Apache CustomLog for WSGI server is not filtered by LogLevel
I have a WSGI server which is served by an Apache proxy. I would like to have a log file dedicated to that server, so I added the following to the VirtualHost declaration:
LogFormat "%h %l %u %t \"%r\...
2
votes
1
answer
3k
views
Is graceful restart of Apache forcing to reload all python modules handled by mod_wsgi?
If I want to be sure that all python modules are recompiled and reloaded in my Django project under mod_wsgi and Apache, is it enough to restart apache gracefully with:
/etc/init.d/apache graceful
...
0
votes
1
answer
3k
views
Apache Processes in top more than MaxClients
We have Apache running with the worker MPM and have MaxClients set to 6, yet when I open up top I can see more than 6 Apache processes running. 13 visible in the screen dump below. Can someone explain ...
0
votes
1
answer
351
views
How do I tell what request a mod_wsgi process is serving?
Occasionally, I get an apache process running at 100% CPU. I've tried letting it run it's course, but I've seen it go more than half an hour without giving up. My running hypothesis is there is an ...
2
votes
1
answer
2k
views
Why does httpd seem to use a different version of python with the same executable?
I am running Apache httpd 2.4.4 on a RedHat 5 machine. I am using Django and running through mod_wsgi. I have Python 2.4.3 installed in /usr/bin and Python 2.7.6 installed in /usr/local/bin and I want ...
0
votes
1
answer
129
views
Using Apache to make a virtual host with the same domain name?
I'm sure there's a name for this and I'm probably just searching wrong. Anyways, is it possible to set up virtual hosts on the same domain name by using information after the '/'
For example
host1 =>...
2
votes
1
answer
980
views
Python and mod_wsgi path issue
I have an AIX 6.1 system that I've compiled and installed:
Apache 2.2.21 (into /usr/local/mercurial)
Python 2.7.2 (into /usr/local/bin and /usr/local/lib)
mod_wsgi 3.3 (with the AIX fix #1 described ...
0
votes
1
answer
90
views
Need Server requirement estimates for my application [duplicate]
I am a newbie to Web Development and am trying to estimate the server requirements based on my application configuration.
My application will have to perform simple database look-up based on unique ...