Not trying to hijack a thread, I am doing the same thing and having
the same problems.
The sudo -u www-data python web2py.py -a "hello"

step made it work for me. Prior to that I got unable to create
application, unable to install application depending on what I was
doing. I also had the NEWINSTALL file staying put, since the startup
with python and rocket the file is gone as well.

I got a ticket on a URL that normally works but it has a print
statement in it (still mostly under development of application) but
decided it would be good to try a deploy to apache2. I am on Ubuntu
10.04 and web2py 1.86.2. The ticket could not be wriiten

Forbidden:
You don't have permission to access /admin/default/ticket/ccims/
192.168.210.5.2010-10-05.15-55-59.a121515a-afac-400a-9cf4-de1bb930b64e
on this server.

default doesn't exist under applications/admin, I am used to seeing
these go into app_name/errors. The application is named ccims.

Thanks
Ron

On Oct 5, 3:15 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> This is the problem. when you use the script provided web2py is
> installed and configured to run with apache and mod_wsgi as used www-
> data.
>
> If you do
>
> python web2py.py -a "hello"
>
> you run it as yourself and you do not have permisson to write on the
> filesystem.
> So after:
>
>    wgethttp://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh
>    chmod +x setup-web2py-ubuntu.sh
>    sudo ./setup-web2py-ubuntu.sh
>
> you should just use your browser (remotely) and got to
>
>    http://<yourhostip>/
>
> and or
>
>    https://<yourhostip>/admin
>
> If you still have problems you may want to try
>
>    sudo -u www-data python web2py.py -a "hello"
>
> Massimo
>
> On Oct 5, 4:36 pm, Lobo <carlosgali...@gmail.com> wrote:
>
> > Hi everyone,
>
> > I'm a newbie to Ubuntu/Linux, and I'm familiar (although with very
> > short experience) with web2py and python; my background is Smalltalk.
>
> > I installed Ubuntu 10.04 LTS (Lucid) on my local computer, and then
> > proceeded to install web2py (based on web2py instructions in chapter
> > 11):
>
> >    wgethttp://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh
> >    chmod +x setup-web2py-ubuntu.sh
> >    sudo ./setup-web2py-ubuntu.sh
>
> > I can open firefox on 'localhost', and it successfully opens web2py.
>
> > I can also get to the admin area when using httpS.
>
> > But I can NOT create new applications - I get the following error:
>
> >    unable to create application "x"
>
> > I can see the following in my environment:
>
> >    + no 'welcome.w2p' file.
> >    + no 'deposit' folder.
> >    + no 'site-packages' folder.
> >    + 'NEWINSTALL' file does exist, empty.
> >    + 'parameters_443.py' file does exist.
>
> > I read that executing the following helps, but no luck for me:
>
> >    python web2py.py -a "hello"
>
> > I get the following error:
>
> >    OSError: [Errno 13] Permission denied: 'deposit'
>
> > Can you please help me with this issue?.
>
> > Thanks in advance,
>
> >    Lobo
>
>

Reply via email to