Ubuntu 14.04 Setup Script with Apache - Issues?

173 views
Skip to first unread message

Brian M

unread,
Jun 18, 2014, 11:08:33 PM6/18/14
to web...@googlegroups.com
Anybody else tried setting things up on Ubuntu 14.04 using scripts/setup-web2py-ubuntu.sh?  I tried it this evening and ran into multiple issues
1) The generated sites-available/default configuration file must be linked to sites-enabled/default.conf or else it doesn't actually get used and all you get are 404 errors. (Note also that you need to have the .conf extension, simply doing a symbolic link from sites-available/default to sites-enabled/default won't work)
2) The granting of permissions in Apache 2.4 seems to have changed. (see http://httpd.apache.org/docs/2.4/upgrading.html) In order to get things working I had to go from
  <Directory /home/www-data/web2py>
    AllowOverride None
    Order Allow,Deny
    Deny from all
    <Files wsgihandler.py>
      Allow from all
    </Files>
  </Directory>
To
<Directory /home/www-data/web2py>
    AllowOverride None
    #Order Allow,Deny
    #Deny from all
    Require all granted
    <Files wsgihandler.py>
      Require all granted
    </Files>
  </Directory>


Note that I am not an expert in configuring Apache and don't know that these changes won't have unwanted security issues, I just know that they seem to be needed to get web2py up and running on Ubuntu 14.04.

3) The AliasMatch for using response.static_version doesn't seem to be working for me either. :( As soon as I set response.static_version in welcome/models/db.py all of the .js and .css files just return 404 errors.


Anybody more knowledgeable than me want to take a look and perhaps offer a patch for the setup script?

Thanks,
Brian

Brian M

unread,
Jun 21, 2014, 1:09:25 AM6/21/14
to web...@googlegroups.com
Ah, I figured out the problem with response.static_version the secret is that you MUST use the format #.#.# for the regex to work, so if you just put a value of say 0.1 like I did it won't match but if you put something like 0.1.0 your good to go.

Still suspect there the other conduit issues might need addressing.

Brian

shachar lobl

unread,
Jun 24, 2014, 12:22:47 PM6/24/14
to web...@googlegroups.com
I'm also experiencing these problems installing on Ubuntu 14.04 as well for the past few days. I've followed all the steps on different tutorials and I still can only get the Apache default page. I was doing this to get a better knowledge of building web apps and I don't have much knowledge of Apache. Based on this thread, I'm going to spin up a server with a different OS to avoid the issues. Thanks

Brian M

unread,
Jun 24, 2014, 3:09:57 PM6/24/14
to web...@googlegroups.com
The nginx setup script works perfectly on ubuntu 14.04.

As for Apache, the changes I mentioned above should get it working just fine as well.
Reply all
Reply to author
Forward
0 new messages