Questions tagged [mod-wsgi]

The mod_wsgi module is a python WSGI adapter module for Apache.

The mod_wsgi module is a python WSGI adapter module for Apache. For details on the official channel for getting mod_wsgi help, see http://modwsgi.readthedocs.io/en/develop/finding-help.html.

3241 questions
1
vote
1 answer

Truncated or oversized response headers received from daemon process with ctypes loadlibrary

Hi I am getting following following message on trying to load my web page deployed through apache "Truncated or oversized response headers received from daemon process" and in apache log [info] mod_wsgi (pid=16368): Initializing Python. [info]…
Mahesh Chaurasia
  • 133
  • 1
  • 1
  • 10
1
vote
0 answers

mod_wsgi got error "ValueError: invalid content length"

I'm using Flask, mod_wsgi and Apache When I try to download file which larger than 2GB, I got this message from error logs [Sat Jul 23 17:04:05 2016] [error] [client 166.104.211.47] mod_wsgi (pid=11964): Exception occurred processing WSGI script…
bsjun
  • 37
  • 1
  • 8
1
vote
1 answer

AWS Elastic Beanstalk mod_wsgi "compiled for" version different than "runtime" version

I'm seeing the following error when I run my Pyramid application on AWS Elastic Beanstalk. [Thu Jul 21 03:45:20.629134 2016] [:warn] [pid 5232] mod_wsgi: Compiled for Python/2.7.9. [Thu Jul 21 03:45:20.629139 2016] [:warn] [pid 5232] mod_wsgi:…
1
vote
0 answers

'uable to open read only database' while deploying django cms in cPanel server

I already deployed a django cms in my cPanel server using (mod_wsgi), But it showing 500 internal server error. 'unable to open a read only database' (default sqllite). Any one know how to resolve it.
nidhin
  • 359
  • 1
  • 3
  • 13
1
vote
1 answer

How to uninstall mod_wsgi when installed with make?

I have installed mod_wsgi on Ubuntu 14.04 as described in their documentation. While I don't get any errors from Apache or anything my Django setup does not work (no idea why exactly) so I would like to start over and use…
hsvar
  • 177
  • 4
  • 14
1
vote
0 answers

Cannot upload text files to django project

I am using Ubuntu 14.04, Apache2, and mod_wsgi-4.5.3, Django 1.10b1 and am new to wsgi. Every time I try to upload a txt file to my website I get the following error in the mod_wsgi error logs: [Thu Jul 07 19:39:20.261989 2016] [wsgi:error] [pid…
1
vote
1 answer

IOError for oauth2.request when used with mod_wsgi + Apache

For a third party API, I'm using oauth2 module, I have following code: Which works well when I use python run.py but throws IOError permission denied when using apache +mod_wsgi configuration. Here is the error: ERROR: Traceback (most recent call…
trex
  • 3,848
  • 4
  • 31
  • 54
1
vote
1 answer

Webserver on python3

I've created a web app in Python 3. It all runs beautifully until I have to upload a file... There's no way to find the path or the file in the environment. I am using wsgi and I am thinking of migrating to another web server, what are your…
hidura
  • 681
  • 3
  • 11
  • 36
1
vote
1 answer

End of script output before headers: wsgi.py

I am trying to install my django project with Apache, mod_wsgi and python3. but Apache still gives this error: Exception ignored in: Traceback (most recent call last): File…
MeBex
  • 488
  • 1
  • 5
  • 20
1
vote
0 answers

Pass data from AJAX to python script using xampp and wsgi

I'm using XAMPP and mod_wsgi to execute my python scripts. So far I'm able to execute my python code by clicking on a button I've created. I'm trying to send data to a python script from a html page, do some stuff, and send back an alert on the…
saibot
  • 11
  • 4
1
vote
1 answer

How to make sure, when mod_wsgi is loaded, Apache is running the module

On an OS X server, I followed the mod_wsgi installation instructions and when I run apachectl -M the output says that mod_wsgi is loaded. On the other hand, when opening the Apache logs after restarting the service, there is no indication that…
1
vote
2 answers

How to manage mod_wsgi logs in apache?

I am working on flask application and i have used mod_wsgi and Apache to host the flask app. I have setup the logging in app it, but i observe that there are same logs are getting written in apache/logs/error.log like [wsgi:error] ... BACK TO THE…
Shashi
  • 2,137
  • 3
  • 22
  • 37
1
vote
0 answers

webapp2 mod_wsgi apache centos 500 internal server error; The wsgi script cannot be loaded as Python module

I'm using webapp2 to develop my app and I want to deploy it on apache using mod_wsgi but I'm getting 500 Internal server Error along with import webapp2 no module found error in error_log. I installed WebOb, Paste, webapp2 on to the system as well…
1
vote
1 answer

Segmentation fault when use memcached in Django+Apache

I am configuring a cache for a Django project, using the MemcachedCache backend. I have tested it in local and in preproduction server and it works like a charm. But when I deploy it on production server I get multiple errors about segmentation…
Stratford
  • 325
  • 1
  • 2
  • 11
1
vote
2 answers

Why does Django/mod_wsgi crash on certain URL lengths?

I've got a weird problem here: I'm getting a 500 error code from Apache serving a Django 1.1 application when the length of the path part of the URL given to Apache is in [23..26,30..33]. For example, http://server/012345678901234567890123 results…
Nikolai Prokoschenko
  • 8,465
  • 11
  • 58
  • 97