Hi Ales, thanks for the suggestion. I ran pythonservice.exe with the debug option and discovered the first problem was in my options.py file. I copied the options.py text in the web2py manual (http://web2py.com/books/default/chapter/29/13) but the lines:
ssl_certificate = " ssl_private_key = " are actually a problem because those are unpaired double quotes. Then I got an error from not having the "profiler_filename" variable in options.py (the options_std of the latest source has this variable already). The "options.py" example of the documentation should be updated, because unless you use pythonservice.exe -debug the service fails silently (as far as I can tell). After fixing these problems I now have the problem you were referring to. "pythonservice.exe -debug web2py" now yields: C:\Python26\Lib\site-packages\win32>pythonservice.exe -debug web2py Debugging service web2py - press Ctrl+C to stop. Info 0x400000FF - web2py server starting ERROR:Rocket.Errors.Port443:Socket USSTPLIION:443 in use by other process and it won't share. WARNING:Rocket.Errors.Port443:Listener started when not ready. I want Apache to control web2py. I do not want to have rocket involved. How do I prevent rocket from starting? Thanks Joe On Friday, August 3, 2012 4:53:43 PM UTC-5, LightDot wrote: > > My guess is that you have Apache and Rocket (web2py's internal web server) > both claiming port 443 at the same time. Do you want to use Apache to run > web2py or..? > > Regards, > Ales > > > On Friday, August 3, 2012 11:40:34 PM UTC+2, joe wrote: >> >> >> Hello >> >> I am running apache on a dedicated windows server (2008). As of this >> morning, it was running successfully as a process. But it needs to be a >> service, and that is causing me a 404 error. Basically, apache runs just >> fine as a service, but when I install and start web2py as a service, it >> starts, and then immediately stops, no matter what I do. Here is my >> options.py: >> >> import socket, os >> ip = socket.gethostname() >> port = 443 >> password = '<recycle>' >> pid_filename = 'httpserver.pid' >> log_filename = 'httpserver.log' >> ssl_certificate = " >> ssl_private_key = " >> numthreads = 10 >> server_name = socket.gethostname() >> request_queue_size = 5 >> timeout = 10 >> shutdown_timeout = 5 >> folder = os.getcwd() >> > --