I think I am getting closer.  So CentOS 5.3 comes with python 2.4.  I build
python 2.6 and installed it so that the two versions can coexist.  The
mod_wsgi docs indicate that mod_python and mod_wsgi (which is compiled
against the 2.6 version of python) may not be able to coexist.  So I
disabled loading of mod_python and changed my apache configs for mod_wsgi.
This is what I have now.

==================================
### setup WSGI
WSGIScriptAlias /apps /usr/local/web2py/current/wsgihandler.py
WSGIDaemonProcess web2py user=apache group=apache \
    home=/usr/local/web2py/current \
    processes=10 maximum-requests=500

<Directory /usr/local/web2py/current>
    Order allow,deny
    Allow from all
</Directory>

LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog /var/log/web2py_access.log common
====================================

When I go to "http://server/apps/"; I am redirected to "
http://server/welcome/default/index"; with an error message of "The requested
URL /welcome/default/index was not found on this server.".  If I go to "
http://server/apps/welcome/default/index";, the page actually loads, but it
looks weird because all the links are pointing to "/welcome/static" instead
of "/apps/welcome/static/".  So I am a lot closer.


On Thu, Aug 20, 2009 at 5:53 AM, Don Lee <sam...@gmail.com> wrote:

> Can that working configuration be posted to this list?
>
>
> On Wed, Aug 19, 2009 at 10:21 PM, Graham Dumpleton <
> graham.dumple...@gmail.com> wrote:
>
>>
>>
>>
>> On Aug 20, 5:14 am, Don Lee <sam...@gmail.com> wrote:
>> > I'll try that, but I got that from the web2py_manual.  The manual gives
>> an
>> > example of a virtual host configuration, so I've tried to adapt that by
>> > taking out the things I feel are related to virtual hosts.
>>
>> The web2py manual is wrong for many reasons. A working mod_wsgi
>> configuration has been supplied to Massimo for next version.
>>
>> Graham
>>
>> > On Wed, Aug 19, 2009 at 2:01 PM, Fran <francisb...@googlemail.com>
>> wrote:
>> >
>> > > On Aug 19, 5:08 pm, Don Lee <sam...@gmail.com> wrote:
>> > > > Alias /apps "/usr/local/web2py/current/applications"
>> >
>> > > Try removing the line above
>> >
>> > > > WSGIScriptAlias /apps "/usr/local/web2py/current/wsgihandler.py"
>> >
>> > > I think it's clashing with this line (mine certainly works & I have no
>> > > 'Alias' like this)
>> >
>> > > F
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to