All Questions

Tagged with
Filter by
Sorted by
Tagged with
26 votes
7 answers
46k views

How to set up Mod_WSGI for Python on Ubuntu

I am trying to setup MOD_WSGI on my Ubuntu box. I have found steps that said I needed to do the following steps I found at http://ubuntuforums.org/showthread.php?t=833766 sudo apt-get install ...
AutomatedTester's user avatar
17 votes
2 answers
14k views

Non-responsive apache + mod_wsgi after installing scipy

I am currently running a Centos 6.4 server, with Apache 2.2.15 and mod_wsgi 3.2. The server is hosting a django-based site (django 1.5.1, python 2.6.6). Everything was running fine until I installed ...
MarkD's user avatar
  • 273
8 votes
1 answer
45k views

Python/Django/WSGI/Apache - "ImportError: No module named site"

I am trying to use a django application on my local ubuntu machine. However the site doesn't work and my /var/log/apache2/errors.log is filled with messages like this: ImportError: No module named ...
Amandasaurus's user avatar
  • 31.6k
7 votes
3 answers
13k views

Python version for mod_wsgi

how can I change the default version mod_wsgi uses? I am using Debian 5 with Apache 2.
Etam's user avatar
  • 171
6 votes
1 answer
11k 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 ...
Thomas's user avatar
  • 61
6 votes
1 answer
6k views

How to make mod_wsgi use Python 3.9?

I originally had Python 3.6 installed and working well with WSGI and Apache2 on my Linux server. Then I created a Flask app that had a dependency needing Python 3.7. I've successfully (and I think) ...
ThatCoolCoder's user avatar
5 votes
1 answer
21k views

Multiple python versions under apache+mod_wsgi

I have several virtual hosts configured under the same apache instance on redhat: apache-2.2.15 mod_wsgi-3.5 compiled with default system python-2.6 For every virtual host WSGIScriptAlias setting ...
alecxe's user avatar
  • 81
5 votes
2 answers
13k views

wsgi and python print statements

I have become aware that the print statements in my django app are causing wsgi to error and fail. Without going over all my code and removing/commenting out the print statements, is there a way I can ...
Designer023's user avatar
5 votes
4 answers
13k views

Make mod_wsgi use python2.7.2 instead of python2.6?

i am running Ubuntu 10.04.1 LTS and it came pre-packed with python2.6 but i need to replace it with python2.7.2. (The reason is simple, 2.7 has a lot of features backported from 3 ) i had ...
guron's user avatar
  • 51
5 votes
2 answers
6k views

Error installing mod_wsgi in centos with python2.7

When i do "make" in mod_wsgi folder i get this error I configured using following ./configure --with-apxs=/usr/local/apache/bin/apxs --with-python=/opt/python27/bin/python /usr/bin/ld: /opt/...
Mirage's user avatar
  • 571
5 votes
3 answers
7k views

Apache won't restart after inserting mod_wsgi [closed]

Python interested me as a web scripting language so I wanted to set it up on my testing server. Cannot get Apache to restart with mod_wsgi. Running xampp v win32-1.8 w/apache v2.4, python v2.7 32bit,...
chris's user avatar
  • 51
4 votes
2 answers
3k views

How can I run two Django versions in the same server?

i've got two web apps. One was developed using Django 1.0 and the other using Django 1.4. How can I run both apps in the same apache2 server using two versions of django? Somebody told me something ...
Liam's user avatar
  • 241
4 votes
2 answers
4k views

How to display the "Hello world" using apache using Python using mod_wsgl but without CGI

I have installed the Python , apache. The command line programs are working with python. I have two virtual hosts in apache site1.local site2.local WHat i want is i place file in site1 root ...
user avatar
4 votes
1 answer
6k views

Apache mod_wsgi installation error

I'm running CentOS 6.7, I'm trying to install mod_wsgi (https://code.google.com/p/modwsgi/) Normally I'd just do: yum install mod_wsgi But since I need to make sure it compiles under Python 2.7 (...
Jorg Ancrath's user avatar
3 votes
1 answer
5k views

Running apache + mod_wsgi as different user

I have a django project, which I am moving from the dev-server to apache. I have managed to get it server with mod_wsgi, but it runs as apache. Mod_wsgi documentation says, that if apache is run as ...
Esa Varemo's user avatar
3 votes
1 answer
5k views

Installing mod_wsgi with python 2.7 on ubuntu

I tried to install mod_wsgi on my ubuntu server using the package manager, but noticed it depends on python 2.6. I'm using python 2.7, and would rather avoid installing 2.6... Does mod_wsgi really ...
Filipe Correia's user avatar
3 votes
1 answer
6k views

Apache2 mod_wsgi python 2.6 Django very slow

I've tried about 1000x things, but I can't seem to figure out why a simple django website is slow using apache 2.2.14/wsgi latest / django 1.3. I've confirmed the problem isn't our database by turning ...
Jonathan S. Fisher's user avatar
3 votes
2 answers
9k views

WSGIDaemonProcess: specifying a user

I have a user account all set up for this Python webapp I'm deploying with mod_wsgi. It's super-unprivileged, and only gets to read from the appdir and write to a separate set of tempdirs which no one ...
issa marie tseng's user avatar
3 votes
2 answers
2k views

Debian Lenny, Python 2.7 and mod_wsgi

I am running a Debian Lenny box, which comes with Python 2.5.2. I would like to run Python 2.7 for my WSGI apps only, keeping 2.5 as default for the system, but I cannot get it to work. First, I ...
igor's user avatar
  • 161
3 votes
2 answers
13k views

How to make apache to run python scripts using MOD_WSGI or MOD_PYTHON in RHEL6?

I am trying to make the apache to run python scripts. I have MOD_WSGI , Apache , Python installed on RHEL6. I even edited httpd.conf file to include these lines. <Directory /var/www/> ...
ASKN's user avatar
  • 133
3 votes
1 answer
3k views

How do I install mod_wsgi in Apache for python 3.5 on CentOS 7 if apxs2 is missing?

I am currently trying to install mod_wsgi 4.4.21 into Apache 2.4 for a Python 3.5 web server on CentOS 7. Under "Configuring The Source Code" in the Quick Installation Guide, it says this: On some ...
gla3dr's user avatar
  • 151
3 votes
1 answer
2k views

Python background task thread lock error with mod_wsgi

I have a small python web application built on the Flask framework and deployed with mod_wsgi to apache. The application is scheduling a background task with apscheduler that runs every couple of ...
totokaka's user avatar
  • 202
3 votes
1 answer
564 views

Configuring wsgi for a simple Python based site

I have an Ubuntu 10.04 server that already has apache and wsgi working. I also have a python script that works just fine using the make_server command: if __name__ == '__main__': from wsgiref....
jbbarnes77's user avatar
3 votes
1 answer
292 views

Issues with URL length in Apache/mod_wsgi

I have a python wsgi API in which I process incoming URL payloads of varied length. I believe, but am not absolutely sure, that I may have run into a limitation of URL size. For a particular payload (...
horcle_buzz's user avatar
3 votes
2 answers
12k views

Python: ImportError: No module named os [closed]

error_log ... [Fri Sep 07 16:30:14 2012] [error] import os [Fri Sep 07 16:30:14 2012] [error] ImportError: No module named os -shell- [root@lts5srv1 home]# ldd /root/epd-5.1.0/bin/python ...
Kreshnik's user avatar
  • 155
2 votes
5 answers
7k views

How do I find the Python executable that my server is using?

I'm new to Linux. I'm managing a (Linux - Apache - mod_wsgi - Django) server, where there are multiple installations of Python. The site is currently working, but I want to find out which executable ...
Ram Rachum's user avatar
  • 5,241
2 votes
3 answers
141 views

To know whether my Uni can run Python web applications

I am completing my first database project. I am going to set up mod_wsgi to Apache such that I can run Python webframework on my Uni's servers. I am not sure whether my Uni has those tools or not. My ...
Léo Léopold Hertz 준영's user avatar
2 votes
7 answers
413 views

I'm DOSing my own Apache server, and I can't stop immediately. What can I do to make things better in the short term?

We've got a BUNCH of distributed clients that, among other things, upload log files to our Apache server. We messed up log rotation on some logs, so we're now uploading relatively large files from ...
user avatar
2 votes
1 answer
2k views

Why does httpd seem to use a different version of python with the same executable?

I am running Apache httpd 2.4.4 on a RedHat 5 machine. I am using Django and running through mod_wsgi. I have Python 2.4.3 installed in /usr/bin and Python 2.7.6 installed in /usr/local/bin and I want ...
Graeme Perrow's user avatar
2 votes
1 answer
6k views

mod_wsgi daemon mode - WSGIDaemonProcess per virtual host configuration?

I had a fairly simple question. When mod_wsgi is run in Daemon mode, and you enable the WSGIDaemonProcess and WSGIProcessGroup directives on a per virtual host basis, are these picked up by other ...
shreddd's user avatar
  • 193
2 votes
2 answers
791 views

What's the most effecient hosting solution for running multiple Pyramid (Python) websites?

In the past, I've written websites in two languages. PHP for smaller sites and Python for larger sites. With this setup, I would run multiple Paster instances to serve each site on a different port ...
dave's user avatar
  • 21
2 votes
2 answers
11k views

mod_wsgi not working on Apache 2.4.12 64 bit on Windows 7 [closed]

I'm running Apache (Haus) 2.4.12 64 bit on Windows 7 64 bit. Python 2.7.9 64 bit is installed. Apache is running flawless if I don't try to load mod_wsgi. I downloaded mod_wsgi.so from this site. I ...
renatov's user avatar
  • 163
2 votes
1 answer
3k views

Running multiple Django projects within Apache, sys.path being over written

I have been trying to research how to do a multiple Python / Django deployment using Apache VirtualHosts. The issue I am encountering seems straight forward, ImportError: Could not import settings '...
Tim's user avatar
  • 23
2 votes
2 answers
13k views

Configuring mod_wsgi to use Python 2.7 [duplicate]

I am trying to configure mod_wsgi to use Python 2.7. I downloaded and unpacked the source and ran ./configure --with-python=/usr/local/bin/python2.7 After this mod_wsgi.so-2.4 and mod_wsgi.so-2.5 ...
chernevik's user avatar
  • 725
2 votes
4 answers
11k views

How to check if mod_wsgl has correcly installed in apache

I have been trying to install mod_wsgl and django but iwas unsuccessful. I am thinking of going step by step. LEaving django aside how can i make sure that i have mod_wsgl installed correctly so ...
user avatar
2 votes
1 answer
3k views

django mod_wsgi memory problem

I have my django application on a VPS server (128mb ram) When i start it with python manage.py runserver, it works perfectly, but if I try to use it over apache/mod_wsgi it causes major slowdown very ...
dabrorius's user avatar
2 votes
1 answer
1k views

Causes of crash doing matrix multiply in Python/mod_wsgi/apache app

I am building a web app using Python 2.7, its bottle micro framework, and apache (via mod_wsgi). This app has some RESTish endpoints, one of which results in a connection error in the browser (Firefox ...
Josh Hemann's user avatar
2 votes
2 answers
2k views

Deploying Django with mod_wsgi

/etc/apache2/site-available/mysite.com <VirtualHost my_ip_here:80> ServerAdmin [email protected] ServerName mysite.com ServerAlias www.mysite.com WSGIScriptAlias / /srv/www/...
Fred Collins's user avatar
2 votes
2 answers
3k views

Django Apache WSGI - very slow production server

I'm scratching my head on this one. Django is installed on my production and dev servers but the live server under not ver heavy load is running extremely slow. Every page is taking more than 30 ...
Derek Organ's user avatar
2 votes
2 answers
1k views

Why is Apache2 not finding my WSGI app?

In my previous question, I asked how to make mod_wsgi use a specific Python version. Following the answer from that question, I created a Python 3.9 virtual environment and made WSGI use it. However, ...
ThatCoolCoder's user avatar
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
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
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
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
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