<div dir="ltr">Just wanted to add, when I do a service iptables status, it is says Firewall is not running. </div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 24, 2014 at 9:30 AM, Krishna Priya Patury <span dir="ltr"><<a href="mailto:krishna.patury@gmail.com" target="_blank">krishna.patury@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi All,</div><div> </div><div>Any other ideas?</div><div> </div><div>The map server application installed outside of my Centos VM can connect to the Postgres database on the VM. I can also connect to the database both from within and outside the VM using psql.</div>

<div> </div><div>I believe the Mapserver installation on my VM is fine too as my shp2img and running the mapserver through command line work just fine. The issue is only when I try to connect to the database through the application from my VM.</div>

<div>I do not see anything additional in the logs. I can see that the database logs are not updated when I hit it though the application within the VM, understandably so with the error message in the browser.</div><div> </div>

<div>The only difference between running shp2img and the application is perhaps the user? I was able to open a succesful connection through psql as an 'apache' user as well(User which is running the Apache server). So am not sure what is missing. </div>

<div> </div><div>Thanks,</div><div>Krishna.</div><div> </div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 23, 2014 at 5:24 PM, Krishna <span dir="ltr"><<a href="mailto:krishna.patury@gmail.com" target="_blank">krishna.patury@gmail.com</a>></span> wrote:<br>

<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">Yes I can connect to Postgres using the same connection information through psql both from within and outside my vm.<br>


<br>
Sent from my iPhone<br>
<div><div><br>
> On Jun 23, 2014, at 5:20 PM, Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca" target="_blank">pramsey@cleverelephant.ca</a>> wrote:<br>
><br>
> Did you restart your postgresql after making the changes to pg_hba and postgresql.conf? Can you telnet to port 5432? Can you connect with psql? Just ignore mapserver for now, you have a connection issue.<br>
><br>
> P.<br>
><br>
><br>
> --<br>
> <a href="http://postgis.net" target="_blank">http://postgis.net</a><br>
> <a href="http://cleverelephant.ca" target="_blank">http://cleverelephant.ca</a><br>
><br>
><br>
> On June 23, 2014 at 2:17:19 PM, Krishna (<a href="mailto:krishna.patury@gmail.com" target="_blank">krishna.patury@gmail.com</a>) wrote:<br>
>>> As I mentioned I have disabled the firewall. Or so I think. When<br>
>> I login as 'root' and click firewall it says disabled. Any way<br>
>> I can confirm/ test this?<br>
><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>