Discussion:
howto Django + lighttpd + Windows?
mamcxyz
2006-06-10 18:36:53 UTC
Permalink
I'm triying to use lighttpd for Windows, so I can test stuff localy and
then upload to linux.

I download the windows version of lighttpd :

http://www.kevinworthington.com:8181/

I configure the thing this way:

server.modules = ( "mod_rewrite", "mod_fastcgi" )
server.document-root = "F:/Proyectos/jhonWeb"
server.indexfiles = ( "index.html", "index.htm", "default.htm" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" )

# you might want to set this to something differently
# if your apache isn't running on port 80 - if your lighttpd
# is running behind some other server, you want to put in some
# other port and change the IP to 127.0.0.1.
server.port = 81
server.bind = "127.0.0.1"
server.tag = "lighttpd/1.4.11 (Win32)"
server.errorlog = "C:/lighttpd/logs/lighttpd.error.log"

fastcgi.server = (
"/main.fcgi" => (
"main" => (

** I try:
"socket" => "F:\Proyectos\jhonWeb\main.fcgi" also

"host" => "127.0.0.1" ,
"port" => 82 ,
"bin-path" =>
"D:\Programacion\Python\Python24\python.exe
F:\Proyectos\jhonWeb\main.fcgi",
"check-local" => "disable"
)
),
"/admin.fcgi" => (
"admin" => (
"socket" =>
"F:\Proyectos\jhonWeb\main.fcgi",
"check-local" => "disable"
)
)
)

url.rewrite = (
"^(/admin/.*)$" => "/admin.fcgi$1",
"^(/r/.*)$" => "/admin.fcgi$1",
"^(/buscar/.*)$" => "/main.fcgi$1",
"^(/restaurantes/.*)$" => "/main.fcgi$1",
"^(/etiquetas/.*)$" => "/main.fcgi$1"
)

*** mimetype stuff here

My main.fcgi

import sys
sys.path +=
['D:\\Programacion\\Python\\Python24\\Lib\\site-packages\\django\\']
sys.path += ['F:\\Proyectos\\jhonWeb\\']
from flup.server.fcgi import WSGIServer
from django.core.handlers.wsgi import WSGIHandler
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'jhonWeb.settings'


def main():
WSGIServer(WSGIHandler()).run()

if __name__ == '__main__':
main()

With "socket" say:

connect failed: Bad file descriptor on
unix:F:\Proyectos\jhonWeb\main.fcgi

I think this ocket thing mut be a *nix thing so...

With port + ip

(mod_fastcgi.c.3298) fcgi: got a FDEVENT_ERR. Don't know why.

And I get blank pages


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
Frankie Robertson
2006-06-13 16:52:12 UTC
Permalink
Post by mamcxyz
I'm triying to use lighttpd for Windows, so I can test stuff localy and
then upload to linux.
What's wrong with the included django development server?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
mamcxyz
2006-06-13 20:33:43 UTC
Permalink
Nothing... but I wanna test the things localy, and for example do a
load testing, something like emulate 1000 users hitting the site and
that kind of fun (yes, I specting a decent workload!!)

Also, because I wanna use ligthttpd in the production server is best
keep the things equal.

Other reason? Because this option exist!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
Istvan
2006-06-13 21:59:09 UTC
Permalink
Post by mamcxyz
Other reason? Because this option exist!
It does not.

Lighttpd fastcgi does not work on windows.

i.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
mamcxyz
2006-06-14 16:54:05 UTC
Permalink
Where I get info about this??

Then I must install apache + mod_python in Windows?

:(


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
Jay Parlar
2006-06-14 16:57:32 UTC
Permalink
Post by mamcxyz
Then I must install apache + mod_python in Windows?
If your goal is to do load testing, and your production server will
use lighttpd, then there's really no point in installing Apache on
Windows, because your load test server will be different from your
production server.

Jay P.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
mamcxyz
2006-06-14 19:29:48 UTC
Permalink
Yes I know... is for that I try the install onto windows.

Is rare, why then RoR can be installed with lighttp on windows?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
Jay Parlar
2006-06-14 20:22:54 UTC
Permalink
Post by mamcxyz
Yes I know... is for that I try the install onto windows.
Is rare, why then RoR can be installed with lighttp on windows?
I think they might use Cygwin to do it. Nothing stopping you from
doing the same, of course.

Jay P.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
Waylan Limberg
2006-06-15 19:32:40 UTC
Permalink
Post by Jay Parlar
Post by mamcxyz
Yes I know... is for that I try the install onto windows.
Is rare, why then RoR can be installed with lighttp on windows?
I think they might use Cygwin to do it. Nothing stopping you from
doing the same, of course.
Or perhaps a virtual machine. VMWare offers a free reader and there
are various pre-confirgured virtual machines avalable for download. I
know there was one for apache, not sure about lighttpd. You could
always use the 30 day trial period on there workstation edition to
create one.
--
----
Waylan Limberg
***@gmail.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
Jeroen Ruigrok van der Werven
2006-06-16 05:34:55 UTC
Permalink
Post by mamcxyz
Yes I know... is for that I try the install onto windows.
Is rare, why then RoR can be installed with lighttp on windows?
As Istvan said FastCGI doesn't work. That means you can normal CGI.
Yes you can, of course, use Apache. I just wonder why you insist on
using lighttpd to do preliminary testing, whereas you can use the
internal server (manage.py runserver) just as good.
--
Jeroen Ruigrok van der Werven

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
mamcxyz
2006-06-16 16:23:20 UTC
Permalink
Simply I imagine that this setup work. I don't know that fastcgi was
not supported.

My wish for use lighttpd is for do load testing in my local computer. I
can use apache or the local web server or setup vmware but sincerily I
think this was the "easy" way.

Thanks for your input.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-***@googlegroups.com
To unsubscribe from this group, send email to django-users-***@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Loading...