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

How to correctly tune Apache and mod_wsgi

I'm using Django with mod_wsgi and need to tune the httpd.conf to handle 500 requests per second at peak. Right now I have the following configuration: StartServers 3 ServerLimit 15 MinSpareThreads 75 MaxSpareThreads 250 MaxRequestWorkers…
Paul R
  • 171
  • 6
0
votes
1 answer

Are mod_wsgi, python3-mod_wsgi and libapache2-mod-wsgi-py3 the same thing? Do i need just one for Django on RHEL 7.6?

I see a couple of tutorials mentioning the Gate Interface specific to python3.6 for Ubuntu -- libapache2-mod-wsgi-py3 as opposed to just mod_wsgi in RHEL's case. Should i be worrying about looking for specific python package on redhat or will just…
rtviii
  • 101
  • 1
  • 3
0
votes
1 answer

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-to-run-python-as-a-web-application-on-centos-7/ The…
Edward_178118
  • 955
  • 4
  • 15
  • 33
-1
votes
1 answer

trouble deploying django under apache on centos with mod_wsgi

EDIT 2: I got this running mostly! It was indeed a SELinux issue. So most things work, I get a cannot write to a read only database error. And some of my things that seem like static are not found, primarily the /admin isn't seen on anything. I…
Codejoy
  • 107
  • 5
  • 17
-1
votes
1 answer

Apache Error (AH01276), Cannot serve directory /var/www/project/:

I am trying to deploy a Django web app on a newly installed centos7 server. for this i am using apache2.4 with mod_wsgi. i am stuck at serving the static files and because i am new to this, this is so confusing to me. here is my configuration files…
Soufiaane
  • 99
  • 5
-1
votes
1 answer

virtualhost not working properly, site only displays with www prefix

I'm configuring my first Apache server with mod_wsgi and it isn't working properly. The script runs fine if the browser navigates to : www.sitename.com, but navigating to sitename.com only displays the document root.
-1
votes
1 answer

Permission denied error while creating files from a python script using mod_wsgi on apache

I'm running a python script under mod_wsgi on apache. The script attempts to create some files under a directory. The path of that directory is defined by this variable named tmpdir in the script. My script resides in…
Omnipresent
  • 227
  • 2
  • 7
  • 13
-1
votes
2 answers

setting up django on a shared server

I would like to learn how to use django, but I have no experience with servers (don't know how to use apache..) and am having trouble getting started. If I only have access to my home directory on a shared server, how should I proceed? How do I…
None
-1
votes
1 answer

Can I optimize this mod_wsgi / apache file better?

I am new to Django/Python/ mod_wsgi, and I was wondering if I could optimize this file to reduce memory usage: ServerRoot "/home//webapps/django_wsgi/apache2" LoadModule dir_module modules/mod_dir.so LoadModule env_module …
tomwolber
  • 179
  • 1
  • 1
  • 3
1 2 3
26
27