On Oct 23, 9:12 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
> The configuration from the book did not work for me. Using centos5 on Media
> temple's servers. with Plesk.
How did it not work? Without knowing the error messages you got in
browser and Apache error logs, one can only guess why it didn't work
for you.
Also ensure you are using 2nd edition of book and not the 1st edition
as first edition instructions are very wrong and will not work.
> At the bottom of this message are links to how I configured web2py on
> centos5. Not exact, I had to combine them with some in the book as well.
>
> Here is a link to my config files... httpd.conf and vhost.conf
>
> http://pastebin.com/m243e0664
With some mistakes as mentioned below.
> With this config, apache does serve the static files, without a directory
> listing, perfect.
>
> Though, only www. domain works, non-www will just direct to a blank page,
> which I can't locate where it is coming from.
>
> Right now I am just wanting a basic configuation, that works with SSL (my
> certificate is only for non-www version of the domain =/) In any case, it
> would at least be nice to redirect it to the correct location.
>
> Is this a VirtualHost problem in apache, or a DNS problem, or a Plesk issue?
> I'm at a loss on where to look.
>
> http://webmanufactory.blogspot.com/2009_06_01_archive.html
This page is misleading. The mod_wsgi stuff is meant to be inside of
the VirtualHost, not outside. One shouldn't use 'processes=1' as that
page says, not that you have.
> http://www.web2py.com/AlterEgo/default/show/240
This page also has wrong information, you shouldn't be setting
WSGIPythonHome.
> http://objectmix.com/python/342557-re-apache-mod_wsgi-daemon-mode.html
It is not recommended to use /tmp as location of sockets for mod_wsgi
daemon mode. If you need to override default, you should use proper
Apache run directory. In Centos use:
WSGISocketPrefix run/wsgi
See:
http://code.google.com/p/modwsgi/wiki/ConfigurationIssues
I would very much recommend going back to what 2nd edition of web2py
books says to use, with only addition perhaps being correct
WSGISocketPrefix override required on Centos.
Then post error messages and better description of what didn't work
along with configuration you are then using at that point.
Graham
> -Thadeus
>
> On Thu, Oct 22, 2009 at 4:39 PM, Graham Dumpleton <
>
>
>
> graham.dumple...@gmail.com> wrote:
> > at said, above looks correct in itself, but if you have gone and
> > made other changes to the configuration example from web2py book, then
> > you could have inadvertently caused it all to not work. So, posting
> > full configuration related to web2py hosting would be a good ide
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---