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
1 answer

Using mod_wsgi with mpm_itk: socket permission issue

I'm using mod_itk as MPM for increased security in shared environment. I also have a Firefox Sync Server within one of the VHosts I host. That vhost is restricted to a certain user via AssignUserId user group. The problem is that the socket…
usr-local-ΕΨΗΕΛΩΝ
  • 2,359
  • 7
  • 34
  • 52
1
vote
0 answers

Modifying httpd.conf to adjust for mod_wsgi and django install then cannot connect via sftp

I modified my httpd.conf file to point to a .wsgi file that I made directing apache to different document root. The server works fine, I see my application live on the net and I am still connected via SSH. However, I was kicked off my sftp and I…
Ty Bailey
  • 111
  • 2
1
vote
1 answer

Configuring varnish and django (apache/modwsgi)

I am trying to work out why my application keeps hitting the database while I have setup varnish infront of apache. I think I am missing some vital configuration, any tips are welcome This is my curl result: HTTP/1.1 200 OK Server: Apache/2.2.16…
Hedde
  • 73
  • 6
1
vote
0 answers

Apache will not start with mod_wsgi enabled

I'm trying to run Apache with mod_wsgi to run Python scripts. The server is running Ubuntu 12.04 with Zend Server installed, but when I enable the wsgi module Apache will not start. I get an error message of apache2: apr_sockaddr_info_get() failed…
Rox45
  • 11
  • 1
1
vote
3 answers

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 on the apache pid; when I have the problem I see this: epoll_wait(10,…
Mike Pennington
  • 8,305
  • 9
  • 44
  • 87
1
vote
2 answers

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] module wsgi_module is already loaded, skipping Syntax…
exo
  • 29
  • 2
  • 4
1
vote
2 answers

Cannot open shared object file when restarting httpd

$ /etc/init.d/httpd restart Starting httpd: httpd: Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_wsgi.so into server: /etc/httpd/modules/mod_wsgi.so: cannot open shared object file: No such file or…
Kreshnik
  • 145
  • 1
  • 3
  • 9
1
vote
0 answers

Bottle.py application times out on mod_wsgi and uwsgi but works in dev mode

I have a bottle.py application that performs well in dev mode. However, a function that has a larger database query is causing the app to time out when run in either uwsgi or the browser to time out when run on mod_wsgi on apache. How should I go…
Don Albrecht
  • 111
  • 2
1
vote
1 answer

Configuring apache to run pyramid with mod_wsgi on EC2

I'm trying to setup my server with apache on an amazon EC2 server, but right now it isn't working. In the configuration files, In /etc/apache2, I have: httpd.conf: LoadModule wsgi_module modules/mod_wsgi.so WSGIPythonHome…
Wiz
  • 205
  • 2
  • 7
1
vote
1 answer

hosting static files with mod_wsgi

I've followed Graham's simple configuration instructions for hosting static files along with a wsgi application mounted at the domain root. And in fact, my site is working. However, requests for static pages are being handled twice. Apache responds…
jmilloy
  • 223
  • 1
  • 4
  • 12
1
vote
1 answer

Apache / mod_wsgi / Django cannot find MySQL shared library

I'm stuck on a case where the MySQL libraries won't be found on a Apache/mod_wsgi/Django deployed server, altough Python alone can import the library correctly. Here's my Apache log errors: [Tue Jul 10 12:52:02 2012] [error] [client 127.0.0.1] …
gyin
  • 199
  • 6
1
vote
3 answers

installing mod_wsgi giving 403 error

installing mod_wsgi giving 403 error httpd.conf i added code below WSGIScriptAlias /wsgi "C:/xampp/www/htdocs/wsgi_app/wsgi_handler.py" AllowOverride None Options None Order deny,allow …
1
vote
2 answers

Any idea of why mod_wsgi creates a coredump in Apache httpd?

I went through the troubleshooting of mod_wsgi but cannot find an answer for my case of segmentation fault. I get the following coredump when the module mod_wsgi is integrated in my Apache httpd server. The server without mod_wsgi works…
gyin
  • 199
  • 6
1
vote
0 answers

Apache conf changes when migrating django project from mod_python to mod_wsgi

Not sure if this is the right place to ask this question, but I'm migrating a django project from mod_python to mod_wsgi and I want to make sure I have my apache configuration correct. The old configuration looks like this: DocumentRoot…
thomascirca
  • 133
  • 3
1
vote
1 answer

mod_wsgi with no access to apache config

Provided that on the server I have: mod_wsgi loaded and enabled all-powerful htaccess, can I use mod_wsgi without the need to edit the global apache config files? I don't have administrative privileges on the server. With modpython is was possible…
gozzilli
  • 123
  • 5