sorry for bad english, i forgot one thing that:
you should check web2py folder first,
if there is a parameters_1234.py file then you have remove it before
do steps above
(coz: if parameters_1234.py is existing then web2py wont ask password
again, dont remember exactly )
web2py admin panel and password wont work if you installed it by
autoscript, because 2 problems:
1- No SSL web2py website be created in webfaction control panel.
2- parameters_portnumber.py: portnumber is wrong ( i tested and it
works with port 80, dont understand why)
To re-config apache for web2py, goto:
username/webapps/web2py/apache2/conf/httpd.conf
open this file and here is config:
************************************************************************
ServerRoot "/home/username/webapps/web2py/apache2"
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule wsgi_module modules/mod_wsgi.so
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
CustomLog /home/kokoyo/logs/user/access_w2p.log combined
DirectoryIndex index.py
DocumentRoot /home/username/webapps/web2py/htdocs
ErrorLog /home/username/logs/user/error_w2p.log
KeepAlive Off
Listen 59634
MaxSpareThreads 3
MinSpareThreads 1
ServerLimit 1
SetEnvIf X-Forwarded-SSL on HTTPS=1
ThreadsPerChild 5
WSGIDaemonProcess w2p processes=1
python-path=/home/username/webapps/web2py/lib/python2.7 threads=1
maximum-requests=120
WSGIProcessGroup w2p
WSGIRestrictEmbedded On
WSGILazyInitialization On
WSGIScriptAlias / /home/username/webapps/web2py/web2py/wsgihandler.py
*********************************************************************
Regards
On Thu, Jul 5, 2012 at 12:35 PM, khuc viet Cuong <[email protected]> wrote:
> hi,
> webfaction will use your admin password for web2py admin password by
> default if you install it by auto-script. its ricsky.
> to set password , you have login via SSH, run web2py as python script,
> it will ask you password, when you done, stop and kill web2py process,
> a new file : parameters_portnumber.py , etc. parameters_1234.py which
> 12345 port is webfaction gave you when create a new app , but web2py
> wont work, alway say can access password or...blabla, to solve it,
> rename its name:
>
> parameters_1234.py--> parameters_80.py
>
> and check your apache thread worker via SSH, and test from your brow.
> default web2py app folder in webfaction will look like this:
> web2py-->
> -apache2
> -htdocs
> -web2py
>
> check your apache thread worker memory usage via SSH to know how much
> it eats, should re-config apache, if not webffaction will kill your
> apache worker and issue email "memory exceed your plan...." when run
> web2py. if u need re-config apache, i will paste it here for you.
> Regards
>
>
> On Thu, Jul 5, 2012 at 7:42 AM, monotasker <[email protected]> wrote:
>> Do you know how to set the admin password? I tried entering my webfaction
>> dashboard password but it didn't work.
>>
>> Ian
>>
>>
>> On Wednesday, July 4, 2012 11:42:24 AM UTC-4, kokoyo wrote:
>>>
>>> hi, i have been using webfaction, you can do these step to get w2py admin:
>>> on the left menu: Domains/Website
>>>
>>> 1. -->Domains-->Add new domain: domain.com (you did)
>>> 2. -->Applications-->Add new application: web2py (you did:
>>> install web2py)
>>> 3. -->Websites--->Click the (+) at bottom-right to create a new Website
>>> with:
>>> Name:*: web2py
>>> Https:* un-check
>>> Subdomains:* domain.com
>>> Site apps:--->app: web2py (got this name at Step 2)
>>> URL path (ex: '/' or '/blog'):* / (you
>>> did)
>>>
>>> 4. Repeat Step 3 with:
>>> Name:*: web2py_admin
>>> Https:* checked
>>> Subdomains:* domain.com
>>> Site apps:--->app: web2py (got this name at Step 2) URL
>>> path (ex: '/' or '/blog'):* /
>>>
>>>
>>> you have lacked of step 4 only,
>>> to login to admin page: https://domain.com/admin
>>>
>>> Regards
>>>
>>> On Tue, Jul 3, 2012 at 1:46 PM, Annet wrote:
>>> > Hi,
>>> >
>>> > This post might answer your question:
>>> >
>>> >
>>> > https://groups.google.com/forum/?fromgroups#!searchin/web2py/annet$20webfaction/web2py/o9We_wV3eNc/0dS3ci6nFOAJ
>>> >
>>> >
>>> > Kind regards,
>>> >
>>> > Annet