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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
2k 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 -I/...
Mirage's user avatar
  • 571
2 votes
3 answers
2k 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 ...
Alejandro Mezcua's user avatar
2 votes
1 answer
660 views

Apache2: mod_wsgi and passenger do not get along

I'm trying to run an instance of apache2 on an ubuntu server with two virtual hosts. One for redmine(phusion passenger), and one for ReviewBoard(mod_wsgi). I haven't created a single server ...
Adaleigh Martin's user avatar
2 votes
1 answer
1k views

django, mod_wsgi, MySQL High CPU - Problems

I am having a problem with an OSQA site. It is Django/Apache/mod_wsgi configured site. Every hour, the CPU spikes to 164% (Average) for task HTTPD. After 10 minutes, it frees back up. I have reviewed ...
Red Rover's user avatar
2 votes
3 answers
11k views

WSGI says "permissions denied" on my Ubuntu server, no WSGISocketPrefix setting works

I am trying to run Apache2 with mod_wsgi supporting daemon processes on Ubuntu 10.04.3 LTS (lucid). The problem is, I am not able to find out a working configuration for WSGISocketPrefix directive. ...
Honza Javorek's user avatar
2 votes
2 answers
2k views

django + wsgi + suexec + userdir + apache?

I've got a django 1.1 website I want to run in wsgi (as that seems to be the recommended deployment on apache). I want it to run as the www user (apache is running as www-data). I would ideally like ...
Jayen's user avatar
  • 1,867
2 votes
1 answer
3k views

Uploading file > 1 MB on Django admin gives 400 Bad Request response

I have a small Django (1.2.x) project deployed on Apache (2.x) via mod_wsgi (3.x). In the admin, if I upload a file < 1MB, I can get it through; however, for a file, say, 1.2MB in size, I get a 400 ...
ayaz's user avatar
  • 483
2 votes
1 answer
827 views

Serving arbitrary subdomains using apache2, mod_wsgi and django

I'm attempting to setup a django development server using a sandbox approach. The specific technologies in place are apache2, mod_wsgi and django. I'd like to use subdomains formatted as: {project}-{...
Adam Hobson's user avatar
2 votes
1 answer
2k views

Apache crashes a few seconds after the start

i've got a problem with apache. When i try to start it (/etc/init.d/apache2 start) it dies after a few seconds. It shows up on "ps aux" consuming a lot of memory and then dies. I don't know what could ...
Nacho's user avatar
  • 21
2 votes
2 answers
1k views

One of my apache processes is huge - how can I find out why?

I'm running Apache 2.2.12 with mod_wsgi, hosting a Django site. Most of the apache child processes weigh in at about 125MB RSS, but occasionally I see one child balloon to > 1GB RSS. At this point ...
Malcolm Box's user avatar
2 votes
0 answers
2k views

Timeout when reading response headers from daemon process. Python, Flask, Apache

I have a problem with my mod_wsgi configuration. Sometimes, I think when there is a lot of traffic on my website, the page breaks and says "Resource temporarily unavailable..." Apache logs: ...
Tony's user avatar
  • 21
2 votes
1 answer
1k views

Apache2.4 + Python 3.7 + mod_wsgi not executing script

I have installed Apache 2.4 (vc15 apacheLounge) and Python 3.7. I installed the mod_wsgi using PIP and everything appears to be setup correct in the Apache server. error.log from apache: [mpm_winnt:...
luger's user avatar
  • 21
2 votes
2 answers
9k views

Error when trying install mod_wsgi using pip

When trying to install mod_wsgi using pip as follows: pip install mod_wsgi I get the following error: 4m.so -L/usr/local/lib -L/usr/local/lib/python3.4/config-3.4m -lpython3.4m /bin/ld: /...
Dean's user avatar
  • 129
2 votes
1 answer
2k views

HTTP 503 errors with Apache and mod_wsgi

I have written a webapp in Django that I host under Apache 2.4 using mod_wsgi. At first glance, it works fine. However, when the Apache process has been running for a while, the webapp starts ...
Compizfox's user avatar
  • 384
2 votes
0 answers
389 views

how to serve a single page application with openshift

I'm tryng to deploy a single page app on openshift. On openshift all the static contents have to be in wsgi/static dir, but I obviously want to serve my static index.html from the root. Every attempts ...
steeeveb's user avatar
2 votes
0 answers
581 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
eldos's user avatar
  • 241
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 ...
Aidas Bendoraitis's user avatar
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 /...
Michael WS's user avatar
2 votes
0 answers
513 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 ...
Juan Carlos Coto's user avatar
2 votes
1 answer
963 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 ...
jasonh's user avatar
  • 357
2 votes
1 answer
320 views

speeding up django server

My setup is django 1.3 and the default mod_wsgi and apache packages for ubuntu 10.04. I tested one view of my app on my development VM (DEBUG and debugging toolbar off): ab -n 200 -c 5 http://127.0.0....
asciitaxi's user avatar
  • 143
2 votes
2 answers
266 views

How to manually start and re-start Apache with mod_wsgi powering a password protected Python WSGI app?

I'm working on a project where I have to meet some regulatory requirements that require at least 3 out of 5 authorized users to start a backend web service that handles very sensitive information ...
Mahmoud Abdelkader's user avatar
2 votes
1 answer
3k views

Apache not serving my python app

So here's my apache config: LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so <VirtualHost *:80> ServerAdmin marijus.merkevicius@gmail.com ServerName 31.220.49.197 ...
Marijus's user avatar
  • 121
1 vote
3 answers
2k views

WSGI cannot access a file, but permissions are correct

I am debugging a problem where MoinMoin on CentOS is throwing a permissions error, but I can't track down where the problematic file / directory is. I ran strace -vp <pid> on the apache pid; ...
Mike Pennington's user avatar
1 vote
1 answer
9k views

Django 2.1 deployment on centos 7 with apache, mod_wsgi, python3 venv

I've stumbled with this seemingly most relevant deployment option because guides seem to either reference mod_wsgi with python2, or deployment on deb based systems where expected paths are different. ...
J D's user avatar
  • 163
1 vote
3 answers
801 views

Why, when everything is working properly, an apache restart writes into error.log?

This is just a minor nitpic, but I wonder if anyone can tell me the reason - when I restart apache, these lines get written into /var/log/apache2/error.log [Thu Mar 24 10:20:56 2011] [warn] mod_wsgi: ...
ripper234's user avatar
  • 5,930
1 vote
2 answers
359 views

How may I know the amount of memory used by each one of my apache sites?

When I run ps aux I get the following process table http://pastebin.com/NJsASBek that shows how much memory is being used by each one of the subprocess. We can see apache proceess are shown like this: ...
quarry32's user avatar
  • 255
1 vote
2 answers
400 views

Too many sites on apache

I have a server with too many virtual hosts, about 500 virtual hosts, half of this with SSL. All this hosts are served with mod_wsgi for Django applications. I notice that after a certain number of ...
Gui's user avatar
  • 59
1 vote
2 answers
3k views

Running two web applications on Apache 2.4

I am trying to run two applications on my Linux apache server: OpenProject pgAdmin (which is WSGI application) And, in order to connect them from remote computer, I use those httpd configuration ...
Michał Turczyn's user avatar
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 ...
user969923's user avatar
1 vote
2 answers
70 views

Check apache modwsgi reload is working correctly

I deployed a application a while ago and it is currently in production. I learned about and attempted to set up code reloading. I read and followed the documentation. and now I'm looking for a way to ...
AlexLordThorsen's user avatar
1 vote
3 answers
2k views

installing mod_wsgi giving 403 error

installing mod_wsgi giving 403 error httpd.conf i added code below WSGIScriptAlias /wsgi "C:/xampp/www/htdocs/wsgi_app/wsgi_handler.py" <Directory "C:/xampp/www/htdocs/wsgi_app/"> ...
John Smiith's user avatar
1 vote
1 answer
1k views

Django error saying "could not connect to server: Permission denied"

I am getting an error trying to visit my Django app. I am running Gentoo and the web server is Apache with the mod_wsgi module to display Django. The error says OperationalError at /admin/ could not ...
hobbes3's user avatar
  • 615
1 vote
2 answers
5k views

How to enable/load mod_wsgi in apache server in centos 8 VPS

I am not able to enable/load module mod_wgsi in apache webserver in cent os 8 VPS. It works very easily in ubuntu by running the command sudo apt install libapache2-mod-wsgi-py3 Please Help me getting ...
Manav Sengupta's user avatar
1 vote
2 answers
670 views

Apache tries to access wsgi-rest parameters in DocumentRoot (AH01797)

I have the following apache2/wsgi configuration, which works fine, except that apache keeps logging: [info] Initial (No.1) HTTPS request received for child 1 (server myserver:443) [error] [client <...
x539's user avatar
  • 162
1 vote
2 answers
7k views

Cannot open shared object file when restarting httpd

$ /etc/init.d/httpd restart Starting httpd: httpd: Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_wsgi.so into server: /etc/httpd/modules/mod_wsgi.so: ...
Kreshnik's user avatar
  • 155
1 vote
1 answer
870 views

Trac causes RuntimeError: instance.__dict__ not accessible in restricted mode

I have the below Apache configuration. The following services are on each port: 8022 - Apache. Testing port, in the long run it will be port 80. 8002 - XDV, a themeing proxy which sits in ...
Jon Hadley's user avatar
1 vote
2 answers
3k views

Windows + Django + mod_wsgi = "DLL load failed"

For a long time I was using Python 2.5 to do all this fine but recently upgraded to 2.7 since building stuff for 2.5 is a real pain. I also updated mod_wsgi to 3.3 for Python 2.7. Everything is ...
Kyle MacFarlane's user avatar
1 vote
3 answers
3k views

Reloading mod_wsgi processes safely in production

Is there a way to safely restart mod_wsgi processes on demand, possibly running on multiple machines? I'm serving a django app with mod_wsgi in daemon mode with apache: WSGIDaemonProcess myapp user=...
Mark's user avatar
  • 25
1 vote
2 answers
1k views

What's a good way to run Apache/mod_wsgi or similar environment on Windows Server 2003?

I need to set up an Apache instance on a windows box we have. I'm running a Python/Django application, and mod_wsgi is preferable so that I can restart individual applications. I do, however, need ...
Jason Baker's user avatar
  • 1,219
1 vote
1 answer
1k views

CentOS 7 / Apache / mod_wsgi - UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2727: ordinal not in range(128)

I've deployed a Python web application (uses Pyramid) in Apache (httpd) using mod_wsgi. After starting the Apache service the error below (from Apache log) occurs when we make a http request to the ...
Eduardo Lucio's user avatar
1 vote
3 answers
2k views

Why is method that uses gevent in a mod_wsgi deployed Flask api raising error about switching threads?

I am trying to deploy a Flask api via Apache/mod_wsgi. The api uses Gevent to provide concurrency for a recursive method. However, it is throwing the following error [Mon Feb 08 12:05:37 2016] [error]...
horcle_buzz's user avatar
1 vote
1 answer
369 views

How to know where is the memory leak of apache2 server

I have an apache2 server, and recently it seems that there is memory leak. I use mod_wsgi to write server WEB service in Python. At first I think it's my python program that leak the memory. But after ...
demonguy's user avatar
  • 125
1 vote
1 answer
662 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 ...
usr-local-ΕΨΗΕΛΩΝ's user avatar
1 vote
2 answers
7k views

Error: "module wsgi_module is already loaded, skipping"

Please help me out, I have been trying to resolve this error from a long time. when i restart Apache and type :sudo /usr/sbin/apachectl -t, I get an output like: [Fri Aug 24 17:02:58 2012] [warn] ...
exo's user avatar
  • 29
1 vote
1 answer
2k views

Configuring apache to run pyramid with mod_wsgi on EC2

I'm trying to setup my server with apache on an amazon EC2 server, but right now it isn't working. In the configuration files, In /etc/apache2, I have: httpd.conf: LoadModule wsgi_module modules/...
Wiz's user avatar
  • 205
1 vote
2 answers
778 views

Any idea of why mod_wsgi creates a coredump in Apache httpd?

I went through the troubleshooting of mod_wsgi but cannot find an answer for my case of segmentation fault. I get the following coredump when the module mod_wsgi is integrated in my Apache httpd ...
gyin's user avatar
  • 199
1 vote
1 answer
1k views

mod_wsgi with no access to apache config

Provided that on the server I have: mod_wsgi loaded and enabled all-powerful htaccess, can I use mod_wsgi without the need to edit the global apache config files? I don't have administrative ...
gozzilli's user avatar
  • 123
1 vote
1 answer
595 views

Can one rely on Apache sanitizing URLs?

I set up Apache with mod_wsgi in a default installation, with a very simple test application test.wsgi that goes like this: def application(environ, start_response): status = '200 OK' output =...
Niklas B.'s user avatar
  • 214
1 vote
1 answer
521 views

Installing and running two versions of mod_wsgi in Apache

I'm trying to setup Python3 and Python2 via mod_wsgi on Ubuntu, so I've installed the mod_wsgi_py3 package but also wish to run the py2 version and have it switched depending on a flag within the ...
Marco Ceppi's user avatar

1 2
3
4 5
8