[web2py] Re: problems with deployment
thanks. That works, but with a little tweak. I copied that file to parameters_433.py (as that's the SSL port). This worked. Thanks. On Oct 22, 3:16 pm, cjrh wrote: > > Where am I supposed to give web2py this password? > > Assuming you have SSH or shell access, first run web2py from the > command line directly: > > $ ./web2py > > It will ask you for a password. After you do that and hit enter, you > can terminate the process. If the parameters file contains 8000 in > the filename, copy the parameters file to > > $ cp parameters_8000.py parameters_80.py > > Note that the admin channel is only enabled for secure access, i.e. > HTTPS, unless you go into th web2py source code and comment out the > admin security bits. There are guides that explain how to do this on > web2pyslices.
[web2py] Re: problems with deployment
> Where am I supposed to give web2py this password? Assuming you have SSH or shell access, first run web2py from the command line directly: $ ./web2py It will ask you for a password. After you do that and hit enter, you can terminate the process. If the parameters file contains 8000 in the filename, copy the parameters file to $ cp parameters_8000.py parameters_80.py Note that the admin channel is only enabled for secure access, i.e. HTTPS, unless you go into th web2py source code and comment out the admin security bits. There are guides that explain how to do this on web2pyslices.
[web2py] Re: problems with deployment
hi everyone: a little update. Problem (2) is my mistake, not web2py. It's a logical mistake by which I redirect to "index" in an infinite loop (so to speak). This error occurred when the put it a new database (mysql or postgres), which led me think initially it was a database configuration mistake. Problem (1) is fixed as well. I had to modify the installation script's default values to put in the ServerName in Apache for this to work. Now it seems to work BUT** it asks for a password to log in the admin app. Which password should I use? Where am I supposed to give web2py this password?
[web2py] Re: problems with deployment
1) sounds like a problem with Apache configuration. Please post your Apache configuration. 2) First thing that comes into mind with this is that communication between Python and MySQL is not working. Is MySQL-python installed, are database privileges correct? Kenneth On Oct 22, 2:19 am, VP wrote: > deploying web2py has given me headaches... > > (1) can't get admin to work (I think SSL was configured > properly)https:///admin/... gives this Apache error: > > [Thu Oct 21 23:14:12 2010] [error] [client 141.225.9.126] Daemon > process called 'web2py' cannot be accessed by this WSGI application: / > home/xxx/web2py/wsgihandler.py > > (2) can't get either mysql or posgres to work. Things are fine with > sqlite, but with either mysql/postgres, I got this problem on Firefox: > > "Firefox has detected that the server is redirecting the request for > this address in a way that will never complete." > > (Safari has a similar message). > > === > > In my set up, my account (not www-data) is set to run apache, etc > I think I've given permissions where needed. As I said, sqlite seems > to have no problems. > > Any hint, please?
[web2py] Re: problems with deployment
which version? can you tell us more about setup? On Oct 21, 6:19 pm, VP wrote: > deploying web2py has given me headaches... > > (1) can't get admin to work (I think SSL was configured > properly)https:///admin/... gives this Apache error: > > [Thu Oct 21 23:14:12 2010] [error] [client 141.225.9.126] Daemon > process called 'web2py' cannot be accessed by this WSGI application: / > home/xxx/web2py/wsgihandler.py > > (2) can't get either mysql or posgres to work. Things are fine with > sqlite, but with either mysql/postgres, I got this problem on Firefox: > > "Firefox has detected that the server is redirecting the request for > this address in a way that will never complete." > > (Safari has a similar message). > > === > > In my set up, my account (not www-data) is set to run apache, etc > I think I've given permissions where needed. As I said, sqlite seems > to have no problems. > > Any hint, please?