[modwsgi] mod_wsgi without python instalation

2012-05-23 Thread Martin B.
Hi, I am working on integration of git to the XAMPP. It must be
portable - so no instalation, just copy/paste files or unpack zip
archive. Git server can be portable, but for best functionality it
requires some web management for creating repositories and manage
users/groups. This can be done for example by GitStack or Trac - both
are written in python. So I need mod_wsgi.so include to apache. I
install python on my second computer and then copy its files to my
server (when I have portable XAMPP) relatively to the apache dir:
D:\XAMPPP_Server\apache
D:\XAMPPP_Server\gitstack\python
As your documentation says - apache cant start with module mod_wsgi if
there is no python installed.
I found a way! To run apache without python instalation you need to do
2 steps:
1) copy file python27.dll from windows/system32 dir of computer where
is python installed to the windows/system32 dir of computer where it
is not
2) insert this to the registry:
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\PythonPath]
@=D:\\XAMPP_Server\\gitstack\\python\\Lib
python Lib dir is required, but registry entry can be more complex,
i.e.:
@=D:\\XAMPP_Server\\gitstack\\python\\Lib;D:\\XAMPP_Server\\gitstack\
\python\\DLLs;D:\\XAMPP_Server\\gitstack\\python\\Lib\\lib-tk

Now I have mod_wsgi.so working on machine where is not python
installed.

My questions are: It is possible to modify source code of mod_wsgi.so
to look for python27.dll in python dir what is relative to the apache
dir, not in system32 dir? And it is possible to make it work without
registry entry?

I test this on two computers, windows XP sp2 - works, windows 7 pro -
works.

Thanks for your answers.

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.



[modwsgi] Re: mod_wsgi without python instalation

2012-05-23 Thread Martin B.
Great, thanks.
Any idea what to do with registry entry?

-- 
You received this message because you are subscribed to the Google Groups 
modwsgi group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.