Hi Rashad

Is mapserv.sock in /var/www/run?  Also, does the web server have
access to the socket file?

I use a similar method to run RT:

# cat /etc/httpd.conf
[SNIP]
server $domain {
        listen on egress tls port 443
        fastcgi socket "/run/rt/rt-server.sock"
        log syslog
        tls {
                key "/etc/ssl/private/server.key"
                certificate "/etc/ssl/server.crt"
        }
        connection max request body 104857600
}
[SNIP]
# ls -l /var/www/run/rt/rt-server.sock
srwxrwxrwx  1 www  www  0 Apr  3 08:27 /var/www/run/rt/rt-server.sock

Also, yes I know 777 is a security risk.  I think RT did that, I don't
tell it to have any particular mode.  chmod o-rwx didn't break RT, so
I'll see about turning those off on startup and diving into the code
to see if I can fix that at the source.

Should be able to chown it after it starts, or you can just run it as
www and put it in its own directory under /run.

On Fri, Apr 3, 2020 at 9:03 PM Rashad Kanavath
<mohammedrasha...@gmail.com> wrote:
>
> Hello all,
>
> Does anybody had tried to mapserver using httpd.
>
> I had latest mapserver 7.3 installed but cannot configure as it gives 500
> internal server error
> https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/geo/mapserver/pkg/README-main?rev=1.4&content-type=text/x-cvsweb-markup
>
> The above readme show information on ngix and supervisor.
> I tried to copy the ngix config into my httpd.conf and got that 500
> internel server error.
> See my httpd.conf below:
>
> server "mydomain.com" {
>   listen on * port 80
>   root "/htdocs/ mydomain.com"
>   location "*.php*" {
>         fastcgi socket "/run/php-fpm.sock"
>   }
>   location "/cgi-bin/mapserv" {
>                 fastcgi socket  "/run/mapserv.sock"
>                 fastcgi param SCRIPT_FILENAME "/cgi-bin/mapserv"
>         }
> }
>
> I had php script working correctly and /var/www/cgi-bin/mapserv -v is
> working correctly
>
> MapServer version 7.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
> SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV
> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG
> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
>
> In the Readme on cvs give details on chroot, but I don't know it usage for
> using OpenBSD httpd
>
> thanks for your help.
> --
> Regards,
>    Rashad



-- 
Aaron Mason - Programmer, open source addict
I've taken my software vows - for beta or for worse

Reply via email to