All Questions
28
questions
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 ...
7
votes
3
answers
24k
views
How can I install wsgi on CentOS using yum?
How can I install wsgi on CentOS using yum? Is there any repository with mod_wsgi?
7
votes
1
answer
40k
views
How to get nginx to pass HTTP_AUTHORIZATION header to Apache
Am using Nginx as a reverse proxy to an Apache server that uses HTTP Auth. For some reason, I can't get the HTTP_AUTHORIZATION header through to Apache, it seems to get filtered out by Nginx. Hence, ...
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 ...
3
votes
1
answer
1k
views
Django + Apache + mod_wsgi: Why is wsgi script executed multiple times?
I'm relatively new to all the server technology and I followed this tutorial to deploy my django app on an Apache Webserver, using mod_wsgi:
http://thecodeship.com/deployment/deploy-django-apache-...
3
votes
2
answers
4k
views
Apache - Difference between ScriptAlias and WSGIScriptAlias
I'm using apache on RHEL Linux server
In my /etc/httpd/conf.d/httpd.conf there are two directives:
WSGIScriptAlias /apps /var/www/apps
<Directory /var/www/apps >
Options MultiViews ExecCGI
...
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 ...
2
votes
1
answer
539
views
Django Deploy Reccomendations
I have a Web application provided in SaaS way... (each client has his own sub-domain and his own database).
My app uses Django Python and Postgresql.
Right now is hosted on a linux shared hosting ...
2
votes
0
answers
581
views
Configuring mod_wsgi daemon mode processes and threads
I am planning to use mpm_worker or mpm_event with daemon mode of mod_wsgi. How to configure processes and threads of WSGIDaemonProcess directive for the optimal performance of apache 2.4.9
1
vote
3
answers
2k
views
WSGI cannot access a file, but permissions are correct
I am debugging a problem where MoinMoin on CentOS is throwing a permissions error, but I can't track down where the problematic file / directory is.
I ran strace -vp <pid> on the apache pid; ...
1
vote
2
answers
5k
views
Tuning django based site deployed using apache wsgi for better performance
I'm running django application using apache+mod_wsgi, I have setup 6 medium ubuntu servers on Amazon ec2 in which 2 for mongo and 4 for django and apache, using ebs for postgresql and configured a ...
1
vote
2
answers
7k
views
Error: "module wsgi_module is already loaded, skipping"
Please help me out, I have been trying to resolve this error from a long time.
when i restart Apache and type :sudo /usr/sbin/apachectl -t, I get an output like:
[Fri Aug 24 17:02:58 2012] [warn] ...
1
vote
1
answer
302
views
Which is Best way to serve multiple wsgi apps using apache2 with different python versions?
Right now I've got a python2 django app deployed in my sever using apache2 and mod-wsgi. Now I want to deploy another one, but this is written in python3. My problem is that mod-wsgi is compiled to ...
1
vote
1
answer
1k
views
Installing mod_wsgi error - config.status: error: cannot find input file: Makefile.in [closed]
Below, I'm trying to install mod_wsgi.
[root@server]# ./configure --with-python=/usr/local/bin/python2.7
checking for apxs2... no
checking for apxs... no
checking Apache version... ./configure: line ...
1
vote
1
answer
1k
views
How to configure Apache with mod_wsgi so that error messages come from the application?
I have deployed a WSGI application in Apache2 with mod_wsgi.
The application is made so that it responds with a 400 response code if the data provided by the user in a form is invalid. The ...
1
vote
1
answer
3k
views
Django WSGI application in a subdirectory?
Recently, I wanted to put one of my WSGI applications into a subdirectory, so that the other directories that cointain various scripts would work as before. In order to do that, I added the following ...
1
vote
1
answer
2k
views
Django 1.10.3 Apache wsgi - ImportError: cannot import name signals
Overnight django stopped working, possibly because of an automatic package upgrade on the server. Its wsgi script now fails to load in production, but running the development server works fine. What ...
1
vote
2
answers
2k
views
Where is WSGI installed on Centos?
I am getting a permissions issue when running django in daemon mode. Reading here https://code.google.com/p/modwsgi/wiki/ConfigurationIssues#Location_Of_UNIX_Sockets I think the solution is to ...
1
vote
2
answers
477
views
Trac/Apache Displays Script Contents (WSGI)
I am struggling with a new Trac 1.0.3 install (from source after having same issue installing via easy_install).
Debian 7.8
Apache 2.2.22
Python 2.7.3
Genshi 0.6
Sqlite 3.7.13
WSGI 3.3
I created the ...
1
vote
1
answer
188
views
How do you implement mod_wsgi on web servers?
All of the documentation I've seen outlines the process for self-managed Apache configuration. I currently have my site hosted through Media Temple. Is it possible to configure WSGI for these types of ...
1
vote
0
answers
203
views
Django - can't get production web server running
I'm trying to deploy a Django app in production, on an apache server, using mod-wsgi. mod-wsgi is installed and working fine. When I run the Django server, it launches fine, but I can't access it on ...
1
vote
1
answer
719
views
How to install mod_wsgi 3.1 on Ubuntu 9.10
I have a Python 3 web app so mod_wsgi < 3.1 doesn't cut it for me. However, on my Ubuntu 9.10 installation there doesn't seem to be a package for mod_wsgi 3.1.
Is there an alternative repository ...
0
votes
3
answers
7k
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:...
0
votes
1
answer
2k
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
1
answer
2k
views
Serving a Python Page with Windows / Apache / Mod_WSGI?
I'm trying to setup python / apache / WSGI on windows.
I have the following installed, all 32-bit and vc9:
Apache 2.4
Python 2.7.9
Mod_WSGI.so in the modules folder.
http://localhost/ Displays the ...
0
votes
1
answer
7k
views
Target WSGI script not found or unable to stat [closed]
This problem has tortured me for days.
I am using Apache, WSGI and django on my Raspberry Pi. Operating system is Raspbian.
Everything is okay except this error from apache.
[error] [client 127.0.0....
0
votes
1
answer
2k
views
WAMP Server not working when I add a directory directive
I am attempting to put WSGI (python) on a WAMP server (Apache 2.2.21, Python 2.7, WAMP 2.2a). Unfortunately, when i add just a simple directory directive and restart, Apache won't start. here is the ...
0
votes
1
answer
446
views
service apache2 start causes error in django
On running
apache2 configtest
I get
Syntax error on line 2 of
/etc/apache2/sites-enabled/firstweb.conf: Invalid command
'WSGIScriptAlias', perhaps misspelled or defined by a module not
included in ...