Hi,
there is the file "web2py.fedora.sh" in web2py/scripts.
I want to use Python2.7 and I had to change some lines.
I have found that < and > must be escaped, python need the full path
(CentOS).
Changed from

ADMINPASS="<recycle>"
...
PYTHON=python


to

ADMINPASS="*\*<recycle*\*>"
...
PYTHON=*/usr/local/bin/*python*2.7*

Further I had to add these lines:


*CERTS=/etc/pki/tls/certs/localhost.crt*
*PRIVATE=/etc/pki/tls/private/localhost.key*
*IP="123.123.123.123"*

This is the new main line in start()


 daemon --check $NAME $PYTHON $DAEMON_DIR/web2py.py -Q --nogui *\*
-a $ADMINPASS -d $PIDFILE -p $PORT *\*
*-c $CERTS -k $PRIVATE -i $IP* RETVAL=$?


And I had to chmod web2pyd.

*chmod 755 web2pyd*


I think there should be an additional comment in chapter 11.1.6.

Maybe these lines could be helpful.
Regards, Martin

Reply via email to