On Mon, Oct 5, 2009 at 10:15, Chris S <sanders.ch...@gmail.com> wrote: > > I heard back from tech support. Python is 'supported' on midphase but > they still have version 2.4 installed with no ETA on any upgrades. I > think that means I can't use them as a host am I correct?
Well, so your hosting company doesn't matter to have up-to-date software? web2py runs on python 2.4 but I think the better option is to change your hosting company since others provide a lot of features (including updated versions of python) and don't cost so much. Search in this list for hosting companies. > When you say not to use a public folder, what would I need to do to > avoid that. If I put the web2py files in a non-public folder where do > I put .htacecss and the WSGI or FastCGI handlers? Do I just leave > them in the current public folder and point them somehow to the non- > public folder with the RewriteBase command in .htaccess? Yes, I think it'll work. > On Oct 4, 10:18 pm, Álvaro Justen [Turicas] <alvarojus...@gmail.com> > wrote: >> On Fri, Oct 2, 2009 at 10:58, Chris S <sanders.ch...@gmail.com> wrote: >> >> > Just wanted to update here for anyone else that tries to implement on >> >Midphasehosting. >> >> > 1 - The RewriteBase for me needed to be: >> > RewriteBase /home/<username>/public_html/<installfolder> >> >> You should not use a "public" (Web-acessible) directory to install >> web2py. It is more safe to have web2py files in a non-public >> directory. >> Using WSGI is preferable than CGI/FastCGI. >> >> >> >> > That changed from 'file not found' to 'bad request' >> >> > 2 - I contacted customer support and it seems python isn't installed >> > but it is supported. I put in a ticket to have python installed on >> > our host, and hopefully if the customer service rep was right I'll be >> > updating you with more info once that's done. >> >> > On Oct 1, 10:26 am, Chris S <sanders.ch...@gmail.com> wrote: >> >> I've got a friend that's letting me try out web2py on his unlimited >> >> host so I can compare to the GAE. However, I'm just not clear on how >> >> to get this setup. >> >> >> He's usingmidphaseand I have cPanel and FTP access to the site. >> >> I've uploaded the contents of my web2py folder into the Public_html/ >> >> myfolder. >> >> >> Going towww.example.com/myfolder >> >> shows an Index of all files in the folder. >> >> >> I tried adding a .htaccess file with: >> >> Options +ExecCGI >> >> AddHandler fastcgi-script .fcgi >> >> RewriteEngine On >> >> RewriteBase / >> >> RewriteRule ^dispatch\.fcgi/ - [L] >> >> RewriteRule ^(.*)$ dispatch.fcgi/$1 [L] >> >> >> With that I renamed the fastcgihandler.py to dispatch.fcgi. I've >> >> given 755 permisions to the dispatch.fcgi file as well as >> >> fcgihandler.py. I get an error message saying that dispatch.fcgi >> >> can't be found. >> >> >> Then I tried using: >> >> SetHandler python-program >> >> PythonHandler web2py_modpython >> >> ##PythonDebug On >> >> >> This time I set the web2py_modpython.py to 755 as well as >> >> wsgihandler.py. Now I get a 500 Internal Server error. >> >> >>Midphasesupport says they support both FastCGI and WSGI. Where do I >> >> go from here? What information do I need to ask for to get this >> >> setup? I had this same copy of web2py running via WSGI + Apache >> >> following the instructions on in the book, but it's really lacking in >> >> information if you can't setup the Apache config file and have to >> >> use .htaccess with WSGI or FastCGI. >> >> >> Thanks! >> >> -- >> Álvaro Justen >> Peta5 - Telecomunicações e Software Livre >> 21 3021-6001 / 9898-0141 >> http://www.peta5.com.br/ -- Álvaro Justen Peta5 - Telecomunicações e Software Livre 21 3021-6001 / 9898-0141 http://www.peta5.com.br/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---