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.

mod_wsgi is a simple to use Apache module which can host any Python application which supports the Python WSGI interface. The module would be suitable for use in hosting high performance production web sites, as well as your average self managed personal sites running on web hosting services.

399 questions
1
vote
0 answers

Apache Server Error: ImportError: No module named site

I am trying to serve my django project over Apache using mod_wsgi. Apache will start but my project in inaccessible. When Apache launches I see ImportError: No module named site in the log. There is also a php site being served by Apache and that is…
0
votes
2 answers

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 configuration (httpd.conf) contains ScriptAlias…
mgb
  • 56
  • 5
0
votes
1 answer

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 server (RHEL 8.0, Httpd/Apache 2.4.37,…
rclyde
  • 11
  • 4
0
votes
0 answers

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-Options SAMEORIGIN
0
votes
0 answers

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 /test /var/www/FlaskApp/FlaskApp/flask_app.wsgi …
Karthi
  • 1
  • 1
0
votes
3 answers

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:50:12 localhost.localdomain httpd[4398]: Invalid…
Josh
  • 131
  • 1
  • 6
0
votes
1 answer

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/stable-2.5.1/api/index.html I have followed the same…
JohnRDOrazio
  • 111
  • 7
0
votes
1 answer

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 (runserver). I suppose that this is because the…
user2641103
  • 101
  • 1
0
votes
0 answers

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 --https-only --server-name mysite.com…
Joel G Mathew
  • 890
  • 1
  • 9
  • 19
0
votes
0 answers

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.
PaleNeutron
  • 101
  • 3
0
votes
1 answer

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: ServerName mysite.com ServerAlias mysite.com Alias…
Dean
  • 129
  • 1
  • 5
0
votes
1 answer

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 #myapp.conf Alias /static…
0
votes
1 answer

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 following configuration StartServers …
Paul R
  • 171
  • 6
0
votes
1 answer

Using wsgi with python 2.6 on ubuntu

I'm using libapache2-mod-wsgi 2.5-1 on ubuntu. Python 2.4 and 2.6 also installed. On server start i get the following warns in the error log: [Sun Nov 29 14:23:47 2009] [warn] mod_wsgi: Compiled for Python/2.6.2. [Sun Nov 29 14:23:47 2009] [warn]…
erenon
  • 243
  • 1
  • 8
0
votes
1 answer

mod_wsgi+Django with a different Python version

My server runs Python 2.4 by default, and I've used make altinstall to get an alternate Python 2.6 installation, for my Django webapp. However, mod_wsgi seems to be defaulting to using /usr/bin/python (2.4) rather than /usr/local/bin/python2.6. Is…
BobMarley
  • 3
  • 1
  • 2