Re: [modwsgi] mod_wsgi v3.5 Installation within Python

2014-11-09 Thread Anthony Dycks
;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

[modwsgi] mod_wsgi v3.5 Installation within Python

2014-11-08 Thread Anthony Dycks
From reading the Python PyPi Index descriptionon for mod_wsgi v4.3, I 
understand that mod_wsgi v4.3 can be installed within the Python 
Interpreter.  Can the latest release of mod_wsgi v3.5 be installed within 
the Python Interpreter as well?

If I install mod_wsgi within the Python Interpreter do I need to remove the 
mod_wsgi3.5.so module reference from the Apache httpd.conf file to prevent 
versioning and environment issues?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.


[modwsgi] Re: mod_wsgi v3.5 Installation within Python

2014-11-08 Thread Anthony Dycks
Some additional Version background on my system environment:


   - Platform: Windows 7 Pro 32-bit
   - Python Installation: 
  - Version 2.7.6 32 Bit 
  - (Default Install for Multiple User; User installed had Admin 
  privileges)
   - LAMP Stack: XAMPP v1.8.2 32-bit
   - Apache Server: v2.4.7
   - mod_wsgi Install: Binary: mod_wsgi‑3.5.ap24.win32‑py2.7.zip



On Saturday, November 8, 2014 10:10:24 AM UTC-8, Anthony Dycks wrote:

 From reading the Python PyPi Index descriptionon for mod_wsgi v4.3, I 
 understand that mod_wsgi v4.3 can be installed within the Python 
 Interpreter.  Can the latest release of mod_wsgi v3.5 be installed within 
 the Python Interpreter as well?

 If I install mod_wsgi within the Python Interpreter do I need to remove 
 the mod_wsgi3.5.so - private http://mod_wsgi3.5.so module reference 
 from the Apache httpd.conf file to prevent versioning and environment 
 issues?

 Thanks!


-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.