Forgot to add, make sure you actually have mod_wsgi (dpkg -l | grep
mod-wgsi) installed AND enabled (ls -l /etc/apache2/mods-enabled/ |
grep wsgi). As WSGI is a picky beast, always do '/etc/init.d/apache2'
restart if change the config (apache2ctl, kill -HUP and similar don't
always do the job)

On Dec 11, 3:42 pm, achipa <[EMAIL PROTECTED]> wrote:
> Just to clear things up... You are running web2py  on port 8000 for
> development or... ? If you're going through WSGI there is no web2py
> port to listen to, the communication with apache is 'internal'.
>
> Here's how my default config looks like on an ubuntu machine (note: I
> actually created a web2py user and group, if you don't have this, just
> use the web server's www-data user/group). Don't forget to chown the
> web2py folder to the user you specify here otherwise web2py won't be
> able to start up.
>
> <VirtualHost *:80>
>         WSGIScriptAlias / /var/www/web2py/wsgihandler.py
>         WSGIDaemonProcess web2py user=web2py group=web2py home=/var/
> www/web2py processes=1 maximum-requests=1000
>
>         ServerAdmin [EMAIL PROTECTED]
>
>         DocumentRoot /var/www/
>         <Directory />
>                 Options FollowSymLinks
>                 AllowOverride None
>         </Directory>
>         <Directory /var/www/>
>                 Options Indexes FollowSymLinks MultiViews
>                 AllowOverride None
>                 Order allow,deny
>                 allow from all
>         </Directory>
>
>         ErrorLog /var/log/apache2/error.log
>         # Possible values include: debug, info, notice, warn, error,
> crit,
>         # alert, emerg.
>         LogLevel warn
>         CustomLog /var/log/apache2/access.log combined
>
> </VirtualHost>
>
> On Dec 11, 1:26 am, Johanm <[EMAIL PROTECTED]> wrote:
>
> > Oops sent the last reply to the author. sorry about that.
> > I'm a little drugged up on cold medicine.
>
> > So I am running Ubuntu 8.10 Server which just like you suggested uses
> > ports.conf
> > however I cant seem to get my WSGI to fire on my web2py
> > the setup runs acceptably i think sine i get in to the folder i have
> > configured but the
> > .py files seem to remain untouched
>
> > any ideas on how to troubleshoot why its not hitting?
> > and yes i am running web2py on port 8000
>
> > thanks again for the help
>
> > Johan
>
> > On Dec 7, 3:25 am, achipa <[EMAIL PROTECTED]> wrote:
>
> > > Which distribution are you using ? Note that on newerubuntu/debian
> > > configs the namevirtualhost directive is actually in ports.conf by
> > > default, you don't need to put it in your site-config (as then you are
> > > doubling it). Also, you might want to comment out ServerName if this
> > > is your default config and you don't have any other sites.
>
> > > On Dec 7, 1:18 am, Johanm <[EMAIL PROTECTED]> wrote:
>
> > > > Hi Guys,
> > > > I'm having some serious issues deploying my web2py project through
> > > > Apache.
> > > > Disclaimer: I'm in no shape or form a linux / apache guy but i know my
> > > > basics.
>
> > > > I'm following the install guide in the book and have all modules
> > > > installed and ssl works (self signed cert)
>
> > > > now i have two config files in my /etc/apache2/sites-available
>
> > > > default and web2py (i have an ssl config file as well which i've moved
> > > > elsewhere but it works with the server.crt etc)
>
> > > > whenever i try to get my application running  i get the following
> > > > error
>
> > > > NameVirtualHost *:80 has no VirtualHosts
>
> > > > now i did some research on it and i assume its because i have multiple
> > > > of these setups in config files. but i dont!
> > > > the only way i can get rid of it is to comment out that line but that
> > > > wont solve anything. (I can also remove the links to site-enabled for
> > > > default but instead of two of these i then get one.)
>
> > > > I get to a folder structure of my web2py applications but thats it.
>
> > > > what am i doing wrong?
> > > > I've spent like 30 hours on this this week and im about to eat my own
> > > > hand if i dont solve this.
>
> > > > thanks,
> > > > Johan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to