[mapserver-users] PostGIS Connection Failure

Mike McCann mccann at mbari.org
Wed Apr 29 08:06:58 PDT 2015


> On Wed, 6/25/14, Krishna Priya Patury <krishna.patury at gmail.com> wrote:
> 
> > Subject: Re: [mapserver-users] PostGIS Connection Failure
> > To: humberto at pastoraldacrianca.org.br
> > Cc: "mapserver-users at lists.osgeo.org" <mapserver-users at lists.osgeo.org>
> > Date: Wednesday, June 25, 2014, 10:13 AM
> >
> > Thanks for responding. Would you please tell
> > me how to check that? When I go to Network Proxy on the VM,
> > "Direct Connection to internet" is selected. 
> >
> >
> > Both Mapserver and Postgres on the
> > same VM. Do you think something might still be blocking the
> > port? I am able to open a psql connection just fine using
> > the same port. What is even more confusing is a Mapserver
> > application outside the VM is able to connect to the
> > Database on the VM just fine.
> 
> This is really weird. Are you sure the application outside of your VM that works has the same connection string as the one that doesn't works ? Both applications (the one that works and the one that doesn´t) are using the same version of Mapserver ? Both applications (the one that works and the one that doesn´t) are hosted in the same machine/VM ?
> 
> 
> Mtro. Carlos Ruiz

I encountered the same exact problem on 64-bit CentOS 6.5: mapserv is able to connect to the database except when executed by apache httpd.

I saw a note that SELinux may be the cause, so I tried:

	echo 0 > /selinux/enforce

and it fixed the problem. 

What are the implications of applying this fix? Does it impact system security in unfavorable ways? 

-Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150429/7ad4d38a/attachment-0001.html>


More information about the mapserver-users mailing list