Ok, I managed to make it work. I set the *ip* variable to '127.0.0.1'. So, the ActivePython environment made the trick. Thank you very much for your help Tim. ;)
Did anyone else try to run web2py as a Windows service using the .exe install? I'd rather to use the .exe install because in that way I don't need to install Python before installing my app. Cheers, David On 14 November 2012 11:07, David Sorrentino <sorrentino...@gmail.com> wrote: > I just tried with ActivePython 2.7 and it works. I mean, at least the task > manager says that the service is running. :) > However I do not manage to make web2py work. > I am pretty sure that the problem is in my* option.py* file. > Now it looks like that: > > import socket >> import os >> >> ip = socket.gethostname() >> port = 8000 >> interfaces = [('0.0.0.0', 80)] >> >> #,('0.0.0.0',443,'ssl_private_key.pem','ssl_certificate.pem')] >> password = '<recycle>' # ## <recycle> means use the previous password >> >> pid_filename = 'httpserver.pid' >> log_filename = 'httpserver.log' >> profiler_filename = None >> ssl_certificate = None # 'ssl_certificate.pem' # ## path to certificate >> file >> ssl_private_key = None # 'ssl_private_key.pem' # ## path to private key >> file >> >> #numthreads = 50 # ## deprecated; remove >> minthreads = None >> maxthreads = None >> server_name = socket.gethostname() >> request_queue_size = 5 >> timeout = 30 >> shutdown_timeout = 5 >> folder = os.getcwd() >> extcron = None >> nocron = None >> > > It should work with the URL 127.0.0.1:8000, but it does not. And I do not > understand what *interfaces *is. :( > Any thoughts? > > Best, > David > > > > On 14 November 2012 10:25, Tim Richardson <t...@growthpath.com.au> wrote: > >> Hi David, >> for me the service installation has worked every time I've used it ... >> but that's with the ActivePython 2.7 distribution on the windows boxes, and >> therefore with a source installation of web2py. >> >> My practical advice is go for this set up and see if that fixes the >> problem. You get a considerably different Python distribution this way. >> >> regards >> >> Tim >> >> >> >> On Wednesday, 14 November 2012 18:30:38 UTC+11, David Sorrentino wrote: >> >>> Hello Derek and Tim, >>> >>> First of all thanks for your reply. :) >>> >>> @Derek: I do not see any log in the logs folder, but logging is not >>> enabled. This morning I will enable it and tell you the results. >>> >>> @Tim: I am testing my app on Windows 7. I did not install any Python >>> distribution on Windows, since I have the need of using the .exe install. >>> However the application has been compiled and packed on Linux >>> (archlinux), with web2py version 2.2.1 and Python 2.7.3 . >>> >>> Can I help more? >>> >>> I wish you a wonderful day. >>> David >>> >>> >>> On 14 November 2012 03:27, Tim Richardson <t...@growthpath.com.au>wrote: >>> >>>> what kind of Windows is it? How did you install Python, and which >>>> distribution is it? >>>> Is your Web2py a source code install, or the .exe install? >>>> >>>> -- >>>> >>>> >>>> >>>> >>> >>> -- >> >> >> >> > > --