On Sat, 5 Dec 2009 11:50:52 -0600
Thadeus Burgess <thade...@thadeusb.com> wrote:

> At least with ubuntu it was as easy as apt-get install... edit one
> (maybe two) config files, and your ready to go for a basic working
> install. (mind you there are lots of other steps just to secure the
> box correctly)

Today i installed Kubuntu 9.10 to my machine (I like KDE). I read the ubunt 
script that edits s config file. I didnt want to change my default page so i 
write the changes to sites-enable/web2py. 

Below is the web2py file.

NameVirtualHost *:80

<VirtualHost *:80>
  ServerName web2py.localhost
  WSGIDaemonProcess web2py user=www-data group=www-data display-name=%{GROUP}
  WSGIProcessGroup web2py
  WSGIScriptAlias / /home/oguz/web2py/wsgihandler.py

  DocumentRoot /home/oguz/web2py/applications 
  <Directory /home/oguz/web2py>
    AllowOverride None
    Order Allow,Deny
    Deny from all
    <Files wsgihandler.py>
      Allow from all
    </Files>
  </Directory>

  AliasMatch ^/([^/]+)/static/(.*) \
           /home/oguz/web2py/applications/$1/static/$2
  <Directory /home/oguz/web2py/applications/*/static/>
    Order Allow,Deny
    Allow from all
  </Directory>

  <Location /admin>
  Deny from all
  </Location>

  <LocationMatch ^/([^/]+)/appadmin>
  Deny from all
  </LocationMatch>

  CustomLog /var/log/apache2/access.log common
  ErrorLog /var/log/apache2/error.log
</VirtualHost>

At the /etc/hosts

12.0.1.1 web2py.localhost ubuntu-desktop 

line is added

web2py directory under /home/oguz is chowned with www-data:www-data 
recursively. So at the browser when i enter 
http://web2py.localhost/test/default/images i should see my application right?

But it still goes and checks /var/www/test. I installed mod_wsgi module for 
apache also. When i started apache2 i don't see any running web2py processes. 
What should i do run web2py without changing the  default config or should i 
have to run that 
http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ubuntu.sh 
script?

-- 
Oguz Yarimtepe <oguzyarimt...@gmail.com>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to