;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program
Files\Intel\DMIX;C:\Program Files\Intel\Services\IPT\;C:\Program
Files\ooRexx;C:\Program Files\rexx.org\Regina;C:\Program
Files\GNU\GnuPG\pub;C:\Program Files\Microsoft SQL
Server\110\DTS\Binn\;C:\Program Files\Microsoft SQL
Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\110\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft Visual
Studio 10.0\Common7\IDE\PrivateAssemblies\;c:\Program Files\Microsoft SQL
Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL
Server\100\DTS\Binn\;C:\Program Files\ibm\gsk8\lib;C:\Program
Files\nodejs\;C:\Program Files\Oracle\Berkeley DB 12cR1
6.0.30\bin;C:\Program Files\Clean
Project\;C:\PROGRA~1\IBM\IBMDAT~1\BIN;C:\Program
Files\jEdit;C:\%RUBY_HOME\bin;C:\Program
Files\scala\bin;C:\Python27;C:\Python27\Scripts\;C:\Program
Files\Git\cmd;C:\Program Files\SQLite3;C:\Program Files\SQLite2;C:\Program
Files\Microsoft Visual Studio 10.0\VC;C:\Program
Files\QuickTime\QTSystem\;C:\Ruby193\bin;C:\Tcl\bin;C:\Program Files\Apache
Software Foundation\apache-maven-3.2.2\bin;C:\Program
Files\Java\jdk1.7.0_51\bin;C:\oraclexe\app\oracle\product\11.2.0\server\bin;C:\Program
Files\ActiveState Komodo Edit 8\;C:\Perl\site\bin;C:\Perl\bin;C:\Program
Files\HP SimplePass 2011\x64;C:\Program Files\HP SimplePass
2011\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program
Files\Intel\DMIX;C:\Program Files\Intel\Services\IPT\;C:\Program
Files\ooRexx;C:\Program Files\rexx.org\Regina;C:\Program
Files\GNU\GnuPG\pub;C:\Program Files\Microsoft SQL
Server\110\DTS\Binn\;C:\Program Files\Microsoft SQL
Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\110\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft Visual
Studio 10.0\Common7\IDE\PrivateAssemblies\;c:\Program Files\Microsoft SQL
Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL
Server\100\DTS\Binn\;C:\Program Files\ibm\gsk8\lib;C:\Program
Files\nodejs\;C:\Program Files\Oracle\Berkeley DB 12cR1
6.0.30\bin;C:\Program Files\Clean
Project\;C:\PROGRA~1\IBM\IBMDAT~1\BIN;C:\Program
Files\jEdit;C:\%RUBY_HOME\bin;C:\Program
Files\scala\bin;C:\Python27;C:\Python27\Scripts\;C:\Program
Files\Git\cmd;C:\Program Files\SQLite3;C:\Program Files\SQLite2;C:\Program
Files\Microsoft Visual Studio 10.0\VC;C:\Program
Files\QuickTime\QTSystem\;C:\Users\Magoo\AppData\Roaming\npm;C:\Program
Files\MongoDB 2.6 Standard\bin;C:\Storage\bat;C:\Program
Files\Java\jdk1.7.0_51\db\bin;C:\Progra~1\scala\bin;C:\Program
Files\Microsoft Visual Studio 10.0\VC\bin;C:\Program
Files\PostgreSQL\8.4\bin
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.REX;.RB;.RBW
PHPRC
\xampp\php
PHP_PEAR_SYSCONF_DIR
\xampp\php
QUERY_STRING
REMOTE_ADDR
::1
REMOTE_PORT
51764
REQUEST_METHOD
GET
REQUEST_SCHEME
http
REQUEST_URI
/UCLA/LearnPython/pyinfo.py
SCRIPT_FILENAME
C:/xampp/htdocs/UCLA/LearnPython/pyinfo.py
SCRIPT_NAME
/UCLA/LearnPython/pyinfo.py
SERVER_ADDR
::1
SERVER_ADMIN
postmaster@localhost
SERVER_NAME
localhost
SERVER_PORT
8081
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
addressApache/2.4.7 (Win32) OpenSSL/0.9.8y mod_wsgi/3.5 Python/2.7.6
PHP/5.4.25 Server at localhost Port 8081/address
SERVER_SOFTWARE
Apache/2.4.7 (Win32) OpenSSL/0.9.8y mod_wsgi/3.5 Python/2.7.6 PHP/5.4.25
SYSTEMROOT
C:\Windows
TMP
\xampp\tmp
WINDIR
C:\Windows
When I test my Hello World .wsgi program, Firefox simply returns the source
code of my .wsgi file rather than the expected 'Hello Python World. My
understanding with mod_wsgi is that the shebang is not required. I am a
bit foggy as to how to setup the path so I following the instructions for
installing mod_wsgi on XAMPP at the following web URL:
https://community.apachefriends.org/f/viewtopic.php?t=42975
Sample helloworld.wsgi in same directory as pyinfo.py program:
def application(environ, start_response):
status = '200 OK'
output = 'Hello Python World!'
response_headers = [('Content-type', 'text/plain'), ('Content-Length',
str(len(output)))]
start_response(status, response_headers)
return [output]
Test URL: http://localhost:8081/UCLA/LearnPython/helloworld.wsgi
Also tried the same program with a helloworld.py but received the 500 HTML
error
Apache Error Log:
[Sun Nov 09 09:00:01.395777 2014] [cgi:error] [pid 7978] [client ::1:42475]
End of script output before headers: helloworld.py
Have attempted a similar configuration on my CentOS Linux 6.5 box with
similar results. In the linux environment I followed the Apache Friends
link above and built my Python and mod_wsgi internally from the source tar
gunzip files.
Best Regards;
Anthony Dycks
On Saturday, November 8, 2014 7:32:37 PM UTC-8, Graham Dumpleton wrote:
The way of installing mod_wsgi using a setup.py file using 'python'
directly, or 'pip', will not be back ported to mod_wsgi