mod-wsgi

Error installing mod_wsgi 3.2

感情迁移 提交于 2019-12-01 22:49:27
I am trying to install mod_wsgi 3.2 on Mac OSX 10.6.6 and am getting this error when I attempt to make Installed assemblers are: /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64 /usr/bin/../libexec/gcc/darwin/i386/as for architecture i386 lipo: can't open input file: /var/folders/XW/XWYalsEzG3Gkn+PhoNKF0k+++TI/-Tmp-//ccsEgbTa.out (No such file or directory) apxs:Error: Command failed with rc=65536 . make: * [mod_wsgi.la] Error 1 This is a late answer, but I found a solution in my searching and wanted to include it here for others. This error typically occurs because you are

Django on apache wtih mod_wsgi (Linux) - 403 Forbidden

纵饮孤独 提交于 2019-12-01 22:36:31
问题 Alright, so i am following this tutorial. When i try to access my site through my local server i get this peculiar error: Forbidden You don't have permission to access / on this server. Apache/2.4.6 (Ubuntu) Server at mysite.com Port 80 . Αs far as i am concerned i have done everything right (i implemented twice the proposed method) and this could easily be an OS error (i am running Mint 16 and error says (Ubuntu) ), however i am not experienced and therefore i need some help. I did some

Install mod_wsgi with Python 2.7 on Windows 64 bit

不打扰是莪最后的温柔 提交于 2019-12-01 20:01:54
I'm trying to deploy my Django website, which is written using Python 2.7, on a windows 64 bit machine (Windows Server 2008 R2). I installed the pre-compiled version of Apache (Apache 2.4.16 x64) from https://www.apachehaus.com/cgi-bin/download.plx (due to lack of option provided by Apache Lounge***), and have checked that Python 2.7 runs on 64 bit and compiles with VC9. I wasn't able to find a pre-built binary for mod_wsgi (for Windows 64 bit and compiled with VC9), so I downloaded the source code for mod_wsgi from https://github.com/GrahamDumpleton/mod_wsgi/releases/tag/4.4.13 and followed

Django on apache wtih mod_wsgi (Linux) - 403 Forbidden

早过忘川 提交于 2019-12-01 19:27:41
Alright, so i am following this tutorial. When i try to access my site through my local server i get this peculiar error: Forbidden You don't have permission to access / on this server. Apache/2.4.6 (Ubuntu) Server at mysite.com Port 80 . Αs far as i am concerned i have done everything right (i implemented twice the proposed method) and this could easily be an OS error (i am running Mint 16 and error says (Ubuntu) ), however i am not experienced and therefore i need some help. I did some research but none of these ( 1 , 2 ) questions along with others, does not seem to answer my case. So here

Numpy ImportError when deploying Flask App using mod_wsgi/Apache2

非 Y 不嫁゛ 提交于 2019-12-01 18:31:08
I'm trying to get a Flask app running on AWS EC2 (standard Ubuntu AMI) through an Apache2 Webserver. My app internally uses Numpy. I have tested the following: Without Numpy, the App runs through Apache2. With Numpy, it trips on the import numpy and throws a 500 Server error (See logs below). With Numpy, the app runs fine when invoked directly from the command line ( i.e. python app.py ). The numpy bits work as expected and I can query app endpoints externally. I also printed the system path ( print sys.path ) just before the import numpy as np and made sure that the appropriate site-packages

Apache2 mod_wsgi 403 forbidden error

此生再无相见时 提交于 2019-12-01 17:36:16
I had it configured right, but then I decided to reinstall my Debian (switching from wheezy to jessie version by the way). Here's the problem: I have a python mod_wsgi application at: /mnt/doc/Python/www/index.py . $ ls -l / | grep mnt drwxr-xr-x 3 root root 4096 sty 12 09:36 mnt $ ls -l /mnt drwxrwxrwx 1 sven sven 20480 sty 7 19:34 doc $ ls -l /mnt/doc/Python/www/ total 12 drwxrwxrwx 1 sven sven 4096 Jan 3 19:52 core -rwxrwxrwx 1 sven sven 0 Dec 22 13:25 __init__.py drwxrwxrwx 1 sven sven 0 Dec 24 00:11 silva -rwxrwxrwx 1 sven sven 984 Dec 22 13:47 silva.py -rwxrwxrwx 1 sven sven 697 Dec 25

Import Pandas on apache server causes timeout error

夙愿已清 提交于 2019-12-01 17:18:35
问题 I've got a Django project working on an Apache server. I installed pandas and want to use it to start manipulating data - however something odd is happening. Anytime I use the import pandas on the production environment, the server will hang up and (after a while) throw a 408 timeout error. I can comment out the pandas portion and the server responds normally without issue. I can't recreate it in the development environment or command line interface with django. Here are the httpd-app.conf

How to launch a pdftk subprocess while in wsgi?

假装没事ソ 提交于 2019-12-01 16:05:52
I need to launch a pdftk process while serving a web request in Django, and wait for it to finish. My current pdftk code looks like this: proc = subprocess.Popen(["/usr/bin/pdftk", "/tmp/infile1.pdf", "/tmp/infile2.pdf", "cat", "output", "/tmp/outfile.pdf"]) proc.communicate() This works fine, as long as I'm executing under the dev server (running as user www-data ). But as soon as I switch to mod_wsgi, changing nothing else, the code hangs at proc.communicate() , and "outfile.pdf" is left as an open file handle of zero length. I've tried a several variants of the subprocess invocation (as

Apache2 mod_wsgi 403 forbidden error

对着背影说爱祢 提交于 2019-12-01 16:05:14
问题 I had it configured right, but then I decided to reinstall my Debian (switching from wheezy to jessie version by the way). Here's the problem: I have a python mod_wsgi application at: /mnt/doc/Python/www/index.py . $ ls -l / | grep mnt drwxr-xr-x 3 root root 4096 sty 12 09:36 mnt $ ls -l /mnt drwxrwxrwx 1 sven sven 20480 sty 7 19:34 doc $ ls -l /mnt/doc/Python/www/ total 12 drwxrwxrwx 1 sven sven 4096 Jan 3 19:52 core -rwxrwxrwx 1 sven sven 0 Dec 22 13:25 __init__.py drwxrwxrwx 1 sven sven 0

django UnreadablePostError: request data read error

流过昼夜 提交于 2019-12-01 15:45:00
I'm working on django project and I got this error email. Stack trace File "/usr/local/lib/python2.7/dist-packages/Django-1.4.3-py2.7.egg/django/core/handlers/wsgi.py", line 180, in _get_post self._load_post_and_files() File "/usr/local/lib/python2.7/dist-packages/Django-1.4.3-py2.7.egg/django/http/__init__.py", line 379, in _load_post_and_files self._post, self._files = QueryDict(self.body, encoding=self._encoding), MultiValueDict() File "/usr/local/lib/python2.7/dist-packages/Django-1.4.3-py2.7.egg/django/http/__init__.py", line 335, in body self._body = self.read() File "/usr/local/lib