My goal is to use apache with web2py on SL (scientific linux).  I've
had trouble and, casting about, I noticed some errors when I run the
fedora setup script recommended in the Book (http://
web2py.googlecode.com/hg/scripts/setup-web2py-fedora.sh.). I include
the troubled sections of the script output at the end.

The problem I see is on starting web2py the first time from the
command line is  "Unable to connect, firefox can't establish
connection to server at 127.0.0.1:8000."

Several script problems are caused by a missing space in lines like
"cat  > something <<EOF "    (~lines 182, 200, 300).  When these are
fixed, the issues about __init__.py remain.  __init__.py turns out to
be a file in the web-apps/web2py directory.

I do not think this is my real problem however, because early on (with
the EOF's fixed) I blithely installed and connected and got the home
page served by rocket.  I cannot repeat that success now.  This may be
for another post (like: how do I get back to a clean install?)
Anyway, I thought you might like to know that there could be some
issues with the install script for fedora-like linuxes, and maybe a
fix for the __init__.py stuff really will get me going.

Here is the output of the script in the areas of trouble:

  inflating: web2py/gluon/tests/test_router.py
  inflating: web2py/gluon/tests/test_routes.py
  inflating: web2py/gluon/tests/test_storage.py
  inflating: web2py/gluon/tests/test_template.py
  inflating: web2py/gluon/tests/test_utils.py
mkdir: cannot create directory `__init__.py/databases': Not a
directory
chown: cannot access `__init__.py/databases': Not a directory
chcon: cannot access `__init__.py/databases': Not a directory
mkdir: cannot create directory `__init__.py/cache': Not a directory
chown: cannot access `__init__.py/cache': Not a directory
chcon: cannot access `__init__.py/cache': Not a directory
mkdir: cannot create directory `__init__.py/errors': Not a directory
chown: cannot access `__init__.py/errors': Not a directory
chcon: cannot access `__init__.py/errors': Not a directory
mkdir: cannot create directory `__init__.py/sessions': Not a directory
chown: cannot access `__init__.py/sessions': Not a directory
chcon: cannot access `__init__.py/sessions': Not a directory
mkdir: cannot create directory `__init__.py/private': Not a directory
chown: cannot access `__init__.py/private': Not a directory
chcon: cannot access `__init__.py/private': Not a directory
mkdir: cannot create directory `__init__.py/uploads': Not a directory
chown: cannot access `__init__.py/uploads': Not a directory
chcon: cannot access `__init__.py/uploads': Not a directory
mkdir: cannot create directory `admin/cache': File exists
mkdir: cannot create directory `examples/private': File exists
mkdir: cannot create directory `welcome/private': File exists
iptables-restore: line 1 failed
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]

 - Creating a self signed certificate

Generating RSA private key, 1024 bit long modulus

.... (break in listing) ....

 - Configure Apache to use mod_wsgi

Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 1 of /etc/httpd/conf.d/
default.conf:
Invalid command 'EOF', perhaps misspelled or defined by a module not
included
in the server configuration
                                                           [FAILED]

 - Setup web2py admin password

dmin password: xxxx
 - Complete!

./setup-web2py-fedora.sh: line 407: EOF: command not found
./setup-web2py-fedora.sh: line 408: EOF: command not found
./setup-web2py-fedora.sh: line 409: EOF: command not found

Reply via email to