Re: [web2py] Re: Hosting PHP and Web2py

2010-01-22 Thread Alexandre Andrade
Ubuntu defines apache2-worker when installing mod-wsgi, but don't uninstall when you change to prefork. So you can use the setup_web2py.sh script in ubuntu and after install php. 2010/1/22 Graham Dumpleton > Apache/mod_wsgi can work with prefork, although daemon mode should be > used to avoi

[web2py] Re: Hosting PHP and Web2py

2010-01-22 Thread Graham Dumpleton
Apache/mod_wsgi can work with prefork, although daemon mode should be used to avoid problems due to PHP requirement of prefork causing adverse performance issues of Python web application. See: http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html If Ubuntu only has PHP f

Re: [web2py] Re: Hosting PHP and Web2py

2010-01-21 Thread Alexandre Andrade
well, thanks by explanation. :-) I think my confusion is because debian/ubuntu, at 'apt-get install libapache2-mod-wsgi', install by default apache2-worker. I tested installing libapache2-mod-php5 after mod-wsgi, (e change to apache2-prefork) and web2py still works The rest is the trick to con

[web2py] Re: Hosting PHP and Web2py

2010-01-20 Thread Graham Dumpleton
On Jan 20, 11:28 pm, Alexandre Andrade wrote: > I think is not a good idea. > > php requires apache2-prefork (single-thread) > wsgi works with apache2-mpm (multi-thread) > > So, they are incompatible. Nonsense. There is no such thing as apache2-mpm so assume you mean worker MPM. Even so, Apac

Re: [web2py] Re: Hosting PHP and Web2py

2010-01-20 Thread Alexandre Andrade
This is the best cenario, if you don't want any problems. Is not because web2py, but because wsgi. I tried apache mod_proxy, but I have problems too. I good solution is a virtual server only to apache + web2py. 2010/1/20 vvk > Our campus servers host many web-sites, so you mean if they run

[web2py] Re: Hosting PHP and Web2py

2010-01-20 Thread mdipierro
This link: http://markmail.org/message/5cgsibkoohxfh6pl seems to say that is not a problem (although they experienced other problems). On Jan 20, 11:43 am, vvk wrote: > Our campus servers host many web-sites, so you mean if they run PHP & > apache, web2py may not give good performance ? > Doe

[web2py] Re: Hosting PHP and Web2py

2010-01-20 Thread vvk
Our campus servers host many web-sites, so you mean if they run PHP & apache, web2py may not give good performance ? Does it mean I need separate server running only apache & web2py (mod_wsgi) ? On Jan 20, 5:28 pm, Alexandre Andrade wrote: > I think is not a good idea. > > php requires apache2

[web2py] Re: Hosting PHP and Web2py

2010-01-19 Thread Graham Dumpleton
On Jan 20, 3:12 pm, vvk wrote: > I installed web2py with apache & mod_wsgi. My computer don't have any > Domain Name. Another PHP project should be hosted on same machine. How > to configure my system to run PHP and web2py at the same time? > > Temporarily, web2py is using http service and https