Re: Web2py running on openbsd 5.7 with new httpd server

2015-06-10 Thread Alvaro Mantilla Gimenez
On Wed, Jun 10, 2015 at 1:35 AM, Florian Obser  wrote:

> You are not giving us much to go with, but this sticks out.  Check if
> that unix domain socket is there and keep in mind that httpd(8)
> chroot(2)s to /var/www, so outside the chroot that should be
> /var/www/tmp/fcgi.sock. Also it needs to be readable and writeable by
> user or group www - the user httpd(8) drops to.
>

You are right. I totally forgot about the chroot jail. Working now!

Thanks!

Alvaro



Re: Web2py running on openbsd 5.7 with new httpd server

2015-06-10 Thread Florian Obser
On Tue, Jun 09, 2015 at 09:44:45PM -0600, Alvaro Mantilla Gimenez wrote:
> Hi,
> 
> I would like to know if anyone have web2py running on OpenBSD 5.7 using
> new httpd server. I've started web2py with fcgihandler and tried a simple
> configuration with no luck (probably wrong, that's why I am asking here):
> 
># cat /etc/httpd.conf
> 
> 
> 
> # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $
> 
> 
> #
> 
> # Macros
> 
> #
> 
> ext_addr="XX.XX.XX.XX"
> 
> 
> #
> 
> # Global Options
> 
> #
> 
> prefork 2
> 
> 
> #
> 
> # Servers
> 
> #
> 
> 
> # A minimal default server
> 
> server "default" {
> 
> listen on $ext_addr port 80
> 
> 
> location "/*" {
> 
> fastcgi socket \
> 
> "/tmp/fcgi.sock"

  
You are not giving us much to go with, but this sticks out.  Check if
that unix domain socket is there and keep in mind that httpd(8)
chroot(2)s to /var/www, so outside the chroot that should be
/var/www/tmp/fcgi.sock. Also it needs to be readable and writeable by
user or group www - the user httpd(8) drops to.

> 
> }
> 
> 
> root "/var/www/htdocs"
> 
> 
> }
> 
> 
> # Include MIME types instead of the built-in ones
> 
> types {
> 
> include "/usr/share/misc/mime.types"
> 
> }
> 
> 
> 
> Any help would be very appreciated. Thanks!!
> 
> 
>   Regards,
> 
> 
> 
>   Alvaro
> 

-- 
I'm not entirely sure you are real.



Web2py running on openbsd 5.7 with new httpd server

2015-06-09 Thread Alvaro Mantilla Gimenez
Hi,

I would like to know if anyone have web2py running on OpenBSD 5.7 using
new httpd server. I've started web2py with fcgihandler and tried a simple
configuration with no luck (probably wrong, that's why I am asking here):

   # cat /etc/httpd.conf



# $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $


#

# Macros

#

ext_addr="XX.XX.XX.XX"


#

# Global Options

#

prefork 2


#

# Servers

#


# A minimal default server

server "default" {

listen on $ext_addr port 80


location "/*" {

fastcgi socket \

"/tmp/fcgi.sock"

}


root "/var/www/htdocs"


}


# Include MIME types instead of the built-in ones

types {

include "/usr/share/misc/mime.types"

}



Any help would be very appreciated. Thanks!!


  Regards,



  Alvaro