I thought this was going to be easy.  Boy, was I wrong.  Lots of good
documentation for ubuntu 11.10 from both ubuntu and linode.  I got
apache, ssl, mysql, php, mod_wsgi, and phpmyadmin working perfectly
first time, no stumbles.

But, then I tried to make the mods to httpd.conf (really, its
includes) to enable wsgi for web2py.  No go.  I think I am running
into all kinds of user / group permissions problems where the OS
blocks permission.

Here is the apache2 error log of my last attempt:

Thu Jan 19 22:42:19 2012] [error] ERROR:web2py:Traceback (most recent
call last):
[Thu Jan 19 22:42:19 2012] [error]   File "/usr/lib/python2.7/web2py/
gluon/main.py", line 441, in wsgibase
[Thu Jan 19 22:42:19 2012] [error]
create_missing_app_folders(request)
[Thu Jan 19 22:42:19 2012] [error]   File "/usr/lib/python2.7/web2py/
gluon/admin.py", line 451, in create_missing_app_folders
[Thu Jan 19 22:42:19 2012] [error]     os.mkdir(path)
[Thu Jan 19 22:42:19 2012] [error] OSError: [Errno 13] Permission
denied: '/usr/lib/python2.7/web2py/applications/welcome/databases'
[Thu Jan 19 22:42:19 2012] [error]

I am really leary of running big scripts because things change that I
don't want to change.  The only real exceptions I need are a way to
setup an alias to access phpmyadmin via ssl to administer the mysql
databases.  it would be nice to also have an alias for a trivial
static html file so that I can quickly verify that the overall domain
is accessible.

I tried to follow a script that Massimo recommended, just pasting in
things for the default file (defining virtual hosts).  I also ran any
step manually from the script that I had not previously performed.
The sudo's to do what I think are creating a web2py group may not have
worked.  Here is the link to that script:

http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ubuntu.sh

When running the sudo - u python -c ... lines at the bottom I have
never successfully gotten a parameters.80 or parameters.443 file
(realize I don't have the exact name correct--but I am not doing it
manually--trying to let the bash command do it) to be created.  Likely
part of the problem.

The only changes I have made are to split the .conf files for
virtualhost *:80 and virtualhost *:443 into two files instead of
combining them and adding the aliases mentioned above.  I think there
is also a question of whether I need a DocumentRoot directive.  I have
tried with and without (which is probably right) and it doesn't
matter.   I think the os permissions are the problem.  "web2py" needs
rwx privileges on pretty much everything within the web2py directory I
guess.  But, I have not seen any of the recipes explicitly address
this--so I had not realized that I had to manually change them.  I
need to learn a lot more about user and group permissions on Linux.
There are just layers and layers to the onion.  I thought I was mostly
programming python, learning a framework, configuring apache, cleaning
up html and css, and understanding how the framework does its queries--
all of which I have made much progress on.  But, there is seemingly no
end to the multi-layered complex dependencies.

I bet this will turn out to be something simpler than I realize.  At
least I hope so.  Thanks.

Reply via email to