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
0
votes
0answers
41 views

Apache2 on Ubuntu domain only shows for the landing page then is replaced with IP address

I have a website on Amazon Lightsail built with Flask on Apache2 using mod_wsgi. I have domain which I have an A record for, pointing to the static ip address of my Lightsail instance. The issue that ...
0
votes
0answers
10 views

how can configure daemon mode for wsgi on apache2.4 on Windows machine?

well recently I installed apache and mod_wsgi on a Windows 10 machine. I use a run.wsgi file as this: import sys sys.path.insert(0, 'C:/Apache24/htdocs/project/src') sys.path.append("C:/Apache24/...
0
votes
1answer
26 views

Need .py files to execute in the same directory with .html and .php files using mod_wsgi

I'm running CentOS 8.1 with Python 3.6.8, and Apache/2.4.37. I'm new to mod_wsgi. I found this "hello world" example and got it to work: https://www.ionos.com/community/hosting/python/use-mod-wsgi-...
0
votes
0answers
19 views

408 status code on checking access logs of django on apache using mod_wsgi in windows

one is php site and other is django project. Php site is working fine but not django project.It is working fine on local runserver but not on apache.I have followed https://www.codementor.io/@...
0
votes
0answers
30 views

How to make backend (Flask) to be only accessible from frontend (Angular) on Apache?

I host Angular app (port 443) and Flask app with mod_wsgi (port 5000) using Apache 2.4. For now the backend app is visible globally over the Internet. I want it to be only accessible through the ...
0
votes
0answers
25 views

How to allow only single concurrent user in mod_wsgi and apache?

I'm running a Python Flask based server on Apache/2.4.29 (Ubuntu) using mod_wsgi on free tier Amazon EC2 Ubuntu t2.micro machine which has very limited CPU and memory. Using flask, I'm serving my API ...
1
vote
2answers
237 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 ...
0
votes
2answers
124 views

How to implement multiple sites using same code on a single apache server?

I have a mod_cgi code "site.py" which is used to serve a website. I'm running several instances of this website on a single apache server, each instance has its own config file. Currently my apache ...
0
votes
0answers
21 views

mod_wsgi/3.4 (internal dummy connection)

In a similar fashion to Apache internal dummy connections, I sometimes get these requests every second about mod_wsgi whereas I'm currently using no project with mod_wsgi (still the module is enabled ...
0
votes
0answers
75 views

Flask app to upload an image file via Apache 2 not working

Running Apache/2.4.41 on Fedora 30 and python3-mod_wsgi-4.6.4-3.fc30.x86_64. And doing a test with: mod_wsgi-express start-server /var/www/flask/upload_pictures.wsgi --user myuser works mostly fine ...
0
votes
0answers
197 views

Error Deploying Django web using mod_wsgi (Forbidden: You don't have permission to access / on this server.)

Hello I'm trying to deploy my first Django website using Apache inside of Centos7 Versions: Apache: 2.4.6 Django: 2.2.6 Python: 3.6.8 My Django project is located inside the /srv directory and ...
0
votes
1answer
263 views

Python module import from a WSGI script fails on RedHat server

Here is a minimal WSGI script, importing a custom python module. It runs fine on a development environment (Mint 18.1, Apache 2.4.18, libapache2-mod-wsgi-py3), but fails when deployed to a test ...
0
votes
0answers
29 views

Apache error log in Ubuntu server Flask framework AH00485: scoreboard is full, not at MaxRequestWorkers [duplicate]

My Environment Ubuntu Server 16.04 Apache Apache/2.4.18 Flask Web-frame work Apache Error Log [Sun Sep 22 15:21:36.882048 2019] [mpm_event:error] [pid 3243:tid 140302542669696] AH00485: ...
0
votes
0answers
186 views

Apache child process does not exit and is not terminated

I am running a web application with Debian 9, Apache 2.4, mod_wsgi 4.5, django 1.11 and python 2.7. My apache conf is ServerTokens Prod ServerSignature Off FileETag MTime Size Header set X-Frame-...
0
votes
0answers
18 views

Configuring apache to use a specific path for wsgi for Review Board

I am trying to set up Review Board on an Ubuntu 18 machine. Review Board has, as part of its setup, a tool which generates an apache .conf file that you are supposed to add to sites-available. This ...
1
vote
2answers
242 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 ...
0
votes
0answers
68 views

Clarification on WSGI Daemon Process options: graceful-timeout and eviction-timeout

Following the WSGI Daemon Process documentation i couldn't understand how these two options work together, what i understood from it is that if i use graceful-timeout alone i may end up killing an ...
0
votes
0answers
140 views

mod_wsgi LoadModule for Python3 is ignored

Trying to configure apache with mod_wsgi and Python3 mod_wsgi config LoadModule wsgi_module /etc/httpd/mod_wsgi/mod_wsgi-py36.cpython-36m-x86_64-linux-gnu.so Flask App config WSGIScriptAlias /...
0
votes
0answers
175 views

apache2 sends 404 responses after some time without requests

I'm getting the following <body>404 - File not found</body> response from my apache server every time after more than a day without sending requests. My setup is: OS: Ubuntu 16.04 Apache/...
2
votes
1answer
787 views

How to debug Django/WSGI/Apache errors

I have a Django 1.11.17 application deployed on Apache 2 and WSGI, Python 2.7. Apache shows an error "Truncated or oversized response headers received from daemon process" I have checked the ...
1
vote
1answer
1k views

Import Error on deploying a flask app on apache

I am trying to deploy a flask app on a VPS using WSGI. I am not using a virtualenv, and pandas is installed on the system: Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0] on linux2 ...
0
votes
2answers
251 views

Disable health-check logging in AWS ELB Django Application

I have a Django application running on aws-elastic-beanstalk. I try to disable the logs caused by my health-checks. The health-checks are already routed to a seperate page. Elastic-beanstalk uses ...
0
votes
2answers
2k views

Apache/httpd error: Invalid command 'WSGIPythonHome'

ISSUE: My Apache/httpd server will not launch. journalctl -xe reveals: Feb 27 01:50:12 localhost.localdomain httpd[4398]: AH00526: Syntax error on line 355 of /etc/httpd/conf/httpd.conf: Feb 27 01:...
1
vote
0answers
98 views

How to run more than one django sites using same virtual environment as subdirectories in apache?

I have an unmanged vps. I have 3 django sites sitename_dev, sitename_staging, sitename_live which are run using a virtual env. All 3 are default django instances with no changes made. I have ...
0
votes
1answer
27 views

How to activate the API in Pootle 2.8.2

I'm wondering does the Pootle API work the same in version 2.8.2 as in version 2.5.1? I don't see any updated docs for the API in Pootle 2.8.2, the last I see is https://pootle.readthedocs.io/en/...
3
votes
1answer
1k views

Apache: Truncated or oversized response headers after graceful restart

After graceful restart, some python wsgi processes fail with 500 (internal server error): [20:06:33] [mpm_prefork:notice] AH00171: Graceful restart requested, doing restart [20:06:36] [wsgi:error] ...
2
votes
0answers
817 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:...
0
votes
1answer
157 views

How to allow a Django application running on Apache to access a remote directory mounted with sshfs

I have a Django application that access a remote directory mounted with sshfs to upload files. The Django application has to read those files as well. The setup is running fine with the Django server (...
1
vote
1answer
5k 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. ...
0
votes
0answers
266 views

Cannot use mod_wsgi-express to serve a site on https

I have a django site. I downloaded letsencrypt certificates for mysite.com and tried to run mod_wsgi-express like this: mod_wsgi-express start-server --log-to-terminal --startup-log --https-port 443 -...
1
vote
1answer
4k views

Wsgi not finding python modules

Trying to get Django server running with Apache and WSGI This is my wsgi.py import os from django.core.wsgi import get_wsgi_application sys.path.append('/home/rohan/Desktop/narsil/narsil') # ...
1
vote
0answers
325 views

Getting Mod_WSGI Error: Deploying Flask Application to ElasticBeanstlk

I am current trying to deploy a Flask Application (an API Application) onto Elastic Beanstalk. But I am getting mod_wsgi error. Here is the error message: [Fri Jun 01 06:10:49.314023 2018] [:...
0
votes
0answers
35 views

Is it all right to see thousands of “Python has shoutdown” in apache log?

As we can see in the picture, thounds of initial&delete info appeared in logs. I don't know what a good Django web site should be, but keep fork&delete seems abnormal and waste resources.
1
vote
0answers
87 views

Apachi httpd hangs on linux servers

In the last few months we're experiencing a major issue in our production php servers: The httpd running on our linux servers hangs and not responding to new requests (up to request timeout) until we ...
1
vote
2answers
4k 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: /...
0
votes
1answer
402 views

Django site running in Apache 2.4.6 on Centos giving 503 server error

Please assist. I have a Django site that i'm trying to configure to run in apache using mod_wsgi. I have setup my virtualhost as follows: <virtualhost *:80> ServerName mysite.com ...
0
votes
1answer
862 views

Centos7 mod_wsgi python3 django timeout error 504 Gateway error

I have been using apache for a django project. I need to upload a very large file in application. But I am getting Gateway timeout error 504. I am using Centos7, httpd2.4, mos_wsgi, python3.48 #...
0
votes
1answer
1k views

Apache mod_wsgi tuning

I have a django site on webfaction that uses apache + mod_wsgi. Site is getting around 1000 requests per minute. But it makes some calculations, so request takes about 5-10 seconds. I use the ...
6
votes
1answer
3k views

mod_wsgi “Call to 'site.addsitedir()' failed” on AWS Elastic Beanstalk Python 3.6 platform

On AWS Elastic Beanstalk, on the "64bit Amazon Linux 2017.09 v2.6.0 running Python 3.6" platform, there seems to be a problem with the mod_wsgi configuration. I see this in /etc/httpd/conf.d/wsgi.conf:...
1
vote
1answer
777 views

Change apache MPM prefork to worker on Amazon Linux AMI

My project by default is running under Prefork MPM. Rigth now i am having some slowing issues, my web got timeout error. Searching on differents foroums i see that is recomended to use the worker ...
1
vote
2answers
390 views

Intermittent slow response & timeouts - Apache + mod_wsgi + Web2py

I've Ubuntu 14.04.5 LTS (i686) on a Digital Ocean droplet with 2x2.4GHzCPU & 4gb physical memory. I am running a web2py application on it with Apache and mod_wsgi. There are a few additional ...
5
votes
1answer
6k views

Django with Apache and mod_wsgi: no system log unless setting Debug = True

I'm using apache web server and mod_wsgi to transfer request to django. $ apache2ctl -v Server version: Apache/2.4.10 (Raspbian) Server built: Sep 17 2016 16:40:43 I'm using this apache site to ...
4
votes
1answer
7k views

Reason for “Gateway Timeout” (mod_wsgi)

I get "Gateway Timeout" 504: The gateway did not receive a timely response from the upstream server or application. I use apache with mod_wsgi Version 4.4.8. In the apache error log I see: ...
0
votes
1answer
1k views

mod-wsgi one daemon for multiple VirtualHosts with different ServerNames

I have an apache2 / mod-wsgi deploy serving multiple domains with what is essentially one single application. All domains are served both on port 80 and 443. So, my configuration would look ...
0
votes
0answers
65 views

trac git repository browser not working

I am trying to setup Trac 1.0.13 on Apache with mod_wsgi. I want to be able to browse local git repos with the BrowserModule. My trac.ini has [git] cached_repository = enabled persistent_cache = ...
2
votes
0answers
766 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 ...
1
vote
1answer
729 views

Mime Magic on files without extension on Apache/2.2.31 and mod_wsgi 3.4

Sorry in advance for the length, thanks for your patience. I have an ancient production server that no one knows how it was built. It uses apache+mod_wsgi to run a Cherry Py python application to ...
10
votes
6answers
12k views

WSGI : Truncated or oversized response headers received from daemon process

System Configuration : Apache2, Django 1.10, Python 3, Ubuntu 16.04 LTS Django debug=True. /var/log/apache2/error.log [52:53.057967] [wsgi:error] [pid 4303] [client 1.1.1.22:24409] Timeout when ...
0
votes
1answer
72 views

Bigger file uploads from Chrome browser hang the mod_wsgi

Recently we upgraded mod_wsgi to v 4.5.15. When trying to upload a 700KB or bigger file to a Django project from Chrome, the Django website crashes. The same file upload from Firefox works fluently. ...
0
votes
1answer
3k views

Apache mod_wsgi, Django and project file permissions

I am setting up a Django project in production. But I'm dealing with a weird permission issue. Before all, this is the structure of my project: project project settings.py urls.py wsgi.py ... apps ...

1
2 3 4 5
8