All Questions
Tagged with mod-wsgi apache-2.2
251
questions
27
votes
2
answers
21k
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 ...
26
votes
7
answers
46k
views
How to set up Mod_WSGI for Python on Ubuntu
I am trying to setup MOD_WSGI on my Ubuntu box. I have found steps that said I needed to do the following steps I found at http://ubuntuforums.org/showthread.php?t=833766
sudo apt-get install ...
17
votes
2
answers
14k
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 ...
14
votes
4
answers
3k
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 ...
10
votes
2
answers
4k
views
High CPU load on Django/Apache/mod_wsgi site
Load testing a django 1.21/Apache/mod_wsgi configuration on an AWS small instance (Ubuntu 10.04) with Apache bench is showing extremely high CPU load (using uptime and vmstat) at low concurrent ...
8
votes
1
answer
45k
views
Python/Django/WSGI/Apache - "ImportError: No module named site"
I am trying to use a django application on my local ubuntu machine. However the site doesn't work and my /var/log/apache2/errors.log is filled with messages like this:
ImportError: No module named ...
6
votes
1
answer
11k
views
Apache, Permission denied on mod_wsgi, fixed with WSGISocketPrefix -- But why?
In what seemed to be a random occurrence, a site went down tonight and after taking a look at the Apache error logs it was this issue:
(13)Permission denied: mod_wsgi (pid=2751): Unable to connect ...
5
votes
1
answer
21k
views
Multiple python versions under apache+mod_wsgi
I have several virtual hosts configured under the same apache instance on redhat:
apache-2.2.15
mod_wsgi-3.5 compiled with default system python-2.6
For every virtual host WSGIScriptAlias setting ...
5
votes
1
answer
24k
views
Directory, Proxy and Location - how to co-exist in one Apache configuration?
Mostly through trial and error I have created the Apache configuration file below.
It aims to allow a server on localhost:8002 and a trac server via WSGI to share an LDAP server and appear to be on ...
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,...
5
votes
2
answers
2k
views
Broken URL rewriting on Django/modwsgi setup
I am trying to setup my Django app to run under Apache with modwsgi. I have defined the following virtualhost:
<VirtualHost *>
ServerName www.domain.com
ServerAlias domain.com
...
4
votes
2
answers
3k
views
How can I run two Django versions in the same server?
i've got two web apps. One was developed using Django 1.0 and the other using Django 1.4. How can I run both apps in the same apache2 server using two versions of django? Somebody told me something ...
4
votes
1
answer
16k
views
Apache2 mod_wsgi django Named Virtual Servers
I'm trying to set up two seperate django sites using mod_wsgi on apache.
The first site is working fine, but the second site cupaday.dyndns.biz is giving a 403:
[Tue Feb 07 22:32:57 2012] [error] [...
4
votes
1
answer
6k
views
Apache mod_wsgi installation error
I'm running CentOS 6.7, I'm trying to install mod_wsgi (https://code.google.com/p/modwsgi/)
Normally I'd just do:
yum install mod_wsgi
But since I need to make sure it compiles under Python 2.7 (...
4
votes
1
answer
739
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>
...
3
votes
1
answer
916
views
Do Apache + mod_wsgi httpd.conf settings for django affect mysql?
I have a django website using Apache and mod_wsgi. Since the last 4-5 days I keep getting this type of error on my admin e-mail.
OperationalError: (1040, 'Too many connections')
I have installed ...
3
votes
1
answer
1k
views
Django + Apache + mod_wsgi: Why is wsgi script executed multiple times?
I'm relatively new to all the server technology and I followed this tutorial to deploy my django app on an Apache Webserver, using mod_wsgi:
http://thecodeship.com/deployment/deploy-django-apache-...
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
...
3
votes
1
answer
7k
views
Installing mod_wsgi into apache2 on Mac OS X?
I used Homebrew to build and install mod_wsgi:
$ brew install mod_wsgi
==> Downloading http://modwsgi.googlecode.com/files/mod_wsgi-3.2.tar.gz
######################################################...
3
votes
1
answer
5k
views
Running apache + mod_wsgi as different user
I have a django project, which I am moving from the dev-server to apache. I have managed to get it server with mod_wsgi, but it runs as apache. Mod_wsgi documentation says, that if apache is run as ...
3
votes
1
answer
6k
views
Apache2 mod_wsgi python 2.6 Django very slow
I've tried about 1000x things, but I can't seem to figure out why a simple django website is slow using apache 2.2.14/wsgi latest / django 1.3. I've confirmed the problem isn't our database by turning ...
3
votes
2
answers
9k
views
WSGIDaemonProcess: specifying a user
I have a user account all set up for this Python webapp I'm deploying with mod_wsgi. It's super-unprivileged, and only gets to read from the appdir and write to a separate set of tempdirs which no one ...
3
votes
2
answers
13k
views
How to make apache to run python scripts using MOD_WSGI or MOD_PYTHON in RHEL6?
I am trying to make the apache to run python scripts. I have MOD_WSGI , Apache , Python installed on RHEL6. I even edited httpd.conf file to include these lines.
<Directory /var/www/>
...
3
votes
1
answer
3k
views
File upload issue with Django app running under Apache/mod_wsgi when daemonized
I've got a Django app running under Apache2 (linux) using mod_wsgi and file uploads fail when running in daemon mode but works when the python interpreter is embedded. Any idea what could be causing ...
3
votes
2
answers
1k
views
Mod_wsgi daemon process status
Is there a way to get the status of the mod_wsgi daemon processes and threads? Something like apache's server status page.
My server's taking a while to respond sometimes and I want to see if it's ...
3
votes
1
answer
1k
views
Django site performance problem
my mod_wsgi/django app has ~2s response time with or without memcached in-memory caching.
response is the same 2s with or without DNS resolution (i.e. with direct IP request)
for comparison, a ...
3
votes
1
answer
564
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 wsgiref....
3
votes
1
answer
920
views
Deploying a Django application in a virtual Ubuntu Server
I have a virtualbox machine running Ubuntu Server 10.04LTS. My intention is to this machine to work like a VPS, this way I can learn and prepare for when I get a VPS service.
Apache+mod_wsgi for ...
3
votes
1
answer
3k
views
Apache and mod_wsgi returning 504 error when posting specific SVG string
I have a wierd 504 error occuring in Apache + mod_wsgi when I post a specific SVG string. The backend application is Python Flask, but it does not seem to get to the application at all.
Here is one ...
3
votes
0
answers
689
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 ...
3
votes
2
answers
12k
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
...
3
votes
0
answers
3k
views
Enabling mod_wsgi with SELinux (Is there a way?) [closed]
I recently had a bit of problem when recently by Deploying Django with mod_wsgi due to SELinux. Usually world get a "Permission denied" error (403). This was solved by disabling SELinux.
Is there a ...
2
votes
2
answers
12k
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 ...
2
votes
5
answers
7k
views
How do I find the Python executable that my server is using?
I'm new to Linux.
I'm managing a (Linux - Apache - mod_wsgi - Django) server, where there are multiple installations of Python. The site is currently working, but I want to find out which executable ...
2
votes
3
answers
4k
views
Where is the environment variable?
I have an apache2 server with active mod-wsgi, but I can't get the environment variable PYTHON_EGG_CACHE.
Here the important lines out of my virtualhost.conf:
DAV svn
SVNParentPath /var/svn
...
2
votes
1
answer
506
views
Find site of apache from linux process table
I am using Ubuntu server and when I run ps aux I get the following process table http://pastebin.com/NJsASBek as we can see apache proceess are shown like this:
www-data 26487 0.0 0.9 245476 14920 ?...
2
votes
2
answers
684
views
my first "production" debian server configuration
I have been using Debian for a year, mostly as the distro for my internal company server. Now I am making a public e-commerce website and I am planning to use a dedicated Debian server at a datacenter ...
2
votes
2
answers
637
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 ...
2
votes
1
answer
4k
views
Can I configure apache/mod_wsgi so that the Alias URL path is not stripped before it reaches my Django app?
I am trying to configure Apache to host a Django webservice and a PHP website.
All URLs with the pattern www.mysite.com/api should be directed to the Django service.
All other URLs (e.g. www.mysite....
2
votes
4
answers
7k
views
Setting environment variables in mod_wsgi for Django
I'm running Django on an RHEL instance under Apache/mod_wsgi, and I'm having issues setting some environment variables for the Python process. All of the components (Apache, Python, mod_wsgi, ...
2
votes
7
answers
413
views
I'm DOSing my own Apache server, and I can't stop immediately. What can I do to make things better in the short term?
We've got a BUNCH of distributed clients that, among other things, upload log files to our Apache server.
We messed up log rotation on some logs, so we're now uploading relatively large files from ...
2
votes
2
answers
2k
views
How to let mod_wsgi only handle certain URLs under Apache?
I have a Django app that handles "/admin/" and "/myapp/". All the other requests should be handled by Apache.
I've tried using LocationMatch but then I'd have to write a negative regex. I've tried ...
2
votes
2
answers
675
views
We have nginx proxying to apache w/mod wsgi and very high server load, how to track down cause?
We have an nginx instance sitting in front of apache 2 (nginx handles static resources, dynamic content requests get proxied to apache) which is primarily using mod_wsgi to server various python/...
2
votes
1
answer
816
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 ...
2
votes
1
answer
4k
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 thread-...
2
votes
1
answer
4k
views
Fine tuning Django Apache mod_wsgi
First off I am looking for some help setting up my Django and Apache settings to fine tune it for my site for the best performance cost effectiveness.
Server info:
Django 1.3 Webfacion server, 80mb ...
2
votes
1
answer
6k
views
mod_wsgi daemon mode - WSGIDaemonProcess per virtual host configuration?
I had a fairly simple question. When mod_wsgi is run in Daemon mode, and you enable the WSGIDaemonProcess and WSGIProcessGroup directives on a per virtual host basis, are these picked up by other ...
2
votes
2
answers
13k
views
Configuring mod_wsgi to use Python 2.7 [duplicate]
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 ...
2
votes
2
answers
140
views
Apache - mod rewrite with virtual host question
I have Apache 2.0 set up with a virtual host like this:
<VirtualHost *:80>
ServerName wackystore
ServerAlias wackyprojects
Alias /media/admin /opt/python/lib/python2.7/site-...
2
votes
4
answers
11k
views
How to check if mod_wsgl has correcly installed in apache
I have been trying to install mod_wsgl and django but iwas unsuccessful.
I am thinking of going step by step.
LEaving django aside how can i make sure that i have mod_wsgl installed correctly so ...