Fresh install on vps.net, forbidden on admin/default/index

194 views
Skip to first unread message

Giuseppe Luca Scrofani

unread,
Jun 21, 2010, 4:28:09 PM6/21/10
to web...@googlegroups.com
Hi all, I've just installed my first remote copy of web2py, I acquired
a node on vps.net, installed the ubuntu LAMP image, connected via ssh
to the shell and installed all the software via this very useful (and
beatiful!) script:

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

When I point my browser to the node ip adress web2py the default
welcome application... ehm, welcome me... But when i click "click here
for the administrative interface" pointing to /admin/default/index I
get this error:

Forbidden

You don't have permission to access /admin/default/index on this server.
Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.10 with Suhosin-Patch
mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/1.3 Python/2.5.2

Now, Im stuck, I dont even imagine what to do. Some help? Maybe I have
to change permission in some directories?

PS: /examples/default/index works

mdipierro

unread,
Jun 21, 2010, 5:07:49 PM6/21/10
to web2py-users
edit the url and replace http:// with https://

On Jun 21, 3:28 pm, Giuseppe Luca Scrofani <glsdes...@gmail.com>
wrote:
> Hi all, I've just installed my first remote copy of web2py, I acquired
> a node on vps.net, installed the ubuntu LAMP image, connected via ssh
> to the shell and installed all the software via this very useful (and
> beatiful!) script:
>
> http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ub...

Giuseppe Luca Scrofani

unread,
Jun 21, 2010, 5:40:33 PM6/21/10
to web...@googlegroups.com
So simple and so effective :D Thanks my hero. Im now able to login in
the admin panel with the same root password of the system, but Im
unable to install any appliances, made by me or dowloaded from the
appliance archive and uploaded to the node. It simply response a flash
popup telling "unable to install application x". Any idea? There is a
sort of system log to look into, searching for events like this?

Álvaro Justen

unread,
Jun 21, 2010, 9:28:58 PM6/21/10
to web...@googlegroups.com

I don't know a lot about the script you've used, but maybe you are
running web2py with a user (let's say, www-data?) that doesn't have
write access to the applications' path.
You can change this executing: chown -R user_that_run_web2py /path/to/web2py
and then restarting Apache.

--
Álvaro Justen - Turicas
http://blog.justen.eng.br/
21 9898-0141

Giuseppe Luca Scrofani

unread,
Jun 22, 2010, 1:29:31 AM6/22/10
to web...@googlegroups.com
In the installation script used:

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

there is this at line 62:

chown -R www-data:www-data web2py

I tried to do "chown -R www-data web2py" in home dir and restart
apache as suggested but the situation is not changed, Im still unable
to upload via the form "Upload & install packed application". I've not
tried yet to manually upload the application files in place, maybe
this will work. But a solution to this would be much appreciated.

Álvaro Justen

unread,
Jun 22, 2010, 2:06:23 AM6/22/10
to web...@googlegroups.com

We need more information on this.
Is there some file created on applications/admin/errors when you try
to upload the new app?

Giuseppe Luca Scrofani

unread,
Jun 22, 2010, 3:19:10 AM6/22/10
to web...@googlegroups.com
I've looked in /admin/default/errors/admin and there is nothing. Until
now I've tried to upload appliances, but now I've tried also to create
one, message is "unable to create application x" (x is for name of
application obviously)
I suppose it is a permission problem, web2py seem unable to create
every type of files...
Please help, if there is some other info I have to provide please
tell. Eventually I can try to install manually web2py, but I hope to
avod this, because I am in a hurry.

Jason Lotz

unread,
Jun 22, 2010, 5:04:05 AM6/22/10
to web2py-users
Step 1 - Shutdown apache
Step 2 - Become www-data user
Step 3 - Start web2py from terminal cmd
Step 4 - Kill web2py (ctl + z)
Step 5 - Restart Apache

This is the work-around provided by cjs on the vps.net forum.
http://www.vps.net/forum/public-forums/tutorials-and-how-tos/2115-web2py-on-vps-net

First time this didn't work for me. Later I went back and installed a
new vps, did some variation of the above instructions and it worked.
Not sure why it didn't work the first time for me or what I did
differently.


On Jun 22, 4:19 pm, Giuseppe Luca Scrofani <glsdes...@gmail.com>
wrote:

Álvaro Justen

unread,
Jun 22, 2010, 12:51:30 PM6/22/10
to web...@googlegroups.com
On Tue, Jun 22, 2010 at 06:04, Jason Lotz <jay...@gmail.com> wrote:
> Step 1 - Shutdown apache
> Step 2 - Become www-data user
> Step 3 - Start web2py from terminal cmd
> Step 4 - Kill web2py (ctl + z)

Ctrl+z does not kill any process - it just *stops* (pause) the actual
process - it'll be running, but in pause state (using the command "bg"
will put the paused process in background and resume, using the
command "fg" will get the process on foreground again). To kill, use
Ctrl+c.

Giuseppe Luca Scrofani

unread,
Jun 22, 2010, 2:40:18 PM6/22/10
to web...@googlegroups.com
Jason I've tried step by step your list of actions in exact order and
it worked! Thanks friends, another problem resolved. Now I have a
working remote web2py installation! Now I see a different world...
vps.net seem a very good service, it is my first dedicated server.
Reply all
Reply to author
Forward
0 new messages