let me guess you edited the pg_hba.conf inside /usr/share/pgsql ? or the one located in /usr/local/pgsq If you did edit pg_hba.conf file from one of those location then you need to execute<br><br>pg_ctl reload<br><br>to have pgsql copy hba file in data directory. or you can simply edit /var/lib/pgsql/data/pg_hba.conf . pgsql reads the file that is inside the data directory. Also you shouldn't just copy 
install.php and index.php from newer version. You should copy all files and folder from newer version. I tested this on my server. When you just replace newer version of index.php and install.php, you get blank page. One more thing i mentioned this in earlier post to enable error display inside 
php.ini so you can debug your problem.<br><br><div><span class="gmail_quote">On 8/26/06, <b class="gmail_sendername">Rajendra Jagad</b> &lt;<a href="mailto:rjagad@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
rjagad@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi V Patel.<br><br>Thanks for the new information. checkout feature is pretty cools stuff. the way it downloads. <br><br><span style="color: rgb(0, 0, 0);">I edited my pg_hba.conf file located outside the apache server on the same box in different dir.
</span><span style="font-style: italic; color: rgb(51, 102, 255);"><span style="font-style: italic;"><br>
# &quot;local&quot; is for Unix domain socket connections only<br>
local&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trust<br>
# IPv4 local connections:<br>
host&nbsp;&nbsp;&nbsp; wifidog&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <a href="http://192.168.1.203/32" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.203/32</a>&nbsp;&nbsp;&nbsp; md5</span></span></div><div><span><br>
host&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <a href="http://127.0.0.1/32" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1/32</a>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trust<br></span></div><div>
# IPv6 local connections:<br>
#host&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::1/128&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trust<br>
The wifidog install.php and index.php cannot connect to database.
located in /usr/local/pgsql&nbsp; and the owner of pgsql directory is wifidog and group is wifidog<br>drwxr-xr-x&nbsp; 9 wifidog wifidog 4096 Aug 25 17:38 pgsql I am not sure what the 9 means &gt;&gt;:-)<br>
<br>I have made significant amount of progress and I get to database configuraiton page when I run<br><a href="http://localhost/wifidog-path/install.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://localhost/wifidog-path/install.php</a>. then next step is connect where the string does not display success or failure because in the 
install.php the script is commented out.<br>when I lauch index.php it does let me know the unable to connect to database,&nbsp; Then I was trying to debug the script to see where this message is comming from. and I found<br><span style="font-style: italic; color: rgb(51, 102, 255);">


41:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo sprintf(_(&quot;Unable to connect to database on %s&quot;),CONF_DATABASE_HOST);</span><br style="font-style: italic; color: rgb(51, 102, 255);"><span style="font-style: italic; color: rgb(51, 102, 255);">


42:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw new Exception(sprintf(_(&quot;Unable to connect to database on %s&quot;),CONF_DATABASE_HOST));</span><br style="font-style: italic; color: rgb(51, 102, 255);"><span style="font-style: italic; color: rgb(51, 102, 255);">


./classes/AbstractDbPostgres.php</span><br style="font-style: italic; color: rgb(51, 102, 255);"><span style="font-style: italic; color: rgb(51, 102, 255);">40:&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;&lt;p class=warning&gt;Unable to connect to database on &quot;.CONF_DATABASE_HOST.&quot;&lt;/p&gt;&quot;;
</span><br style="font-style: italic; color: rgb(51, 102, 255);"><span style="font-style: italic; color: rgb(51, 102, 255);">./classes/AbstractDbMySql.php</span><br style="font-style: italic; color: rgb(51, 102, 255);"><span style="font-style: italic; color: rgb(51, 102, 255);">


810:#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Unable to connect to database on $CONF_DATABASE_HOST&lt;BR&gt;The database must be online to continue.&lt;BR&gt;Please go back and retry with correct values&quot;;</span><br style="font-style: italic; color: rgb(51, 102, 255);">


<span style="font-style: italic; color: rgb(51, 102, 255);">849:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Unable to connect to database on &lt;B&gt;$CONF_DATABASE_HOST&lt;/B&gt;&lt;BR&gt;The database must be online to continue.&lt;P&gt;Please go back and retry with correct values&quot;;
</span><br style="font-style: italic; color: rgb(51, 102, 255);"><span style="font-style: italic; color: rgb(51, 102, 255);">./install.php</span><br><br>Off course since I am using postgres I can ignoar the <span style="font-style: italic; color: rgb(51, 102, 255);">


./classes/AbstractDbMySql.php file <br></span><span style="color: rgb(0, 0, 0);">and when I open the first one it is commented out. Hence I never get the message cannot connect to database on install.php The second line 849 my guess is that when 
index.php is run. One of the subroutines calls the check function from install.php and able go to line 849 to display the message unable to connect to database on localhost. But I am not sure is there a way to check if the message is comming from script or system generated messages which happens to be exactly same too.  
<br><br>I copied the index.php and install.php from the new download. to by current install.php location when I run the <a href="http://localhost/wididog-path/install.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://localhost/wididog-path/install.php</a> nothing displays :: same problem i run into when I remove the comments from my old 
index.php&nbsp; it will not display on the browser either. so commiting out those lines does get the script to display and work but then if one is having database connection problems.. how does one debug ? <br><br></span><span style="font-style: italic; color: rgb(51, 102, 255);">


<span style="font-style: italic;"><span style="font-style: italic;">Raj</span><br></span></span></div><div><span><br><div><span class="gmail_quote">On 8/26/06, <b class="gmail_sendername">
V Patel</b> &lt;<a href="mailto:sgrlogs@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
sgrlogs@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Are you sure you have the latest version? I believe you have the version posted on Sourceforge. That is outdated one as it is not updated since last year. Remember that wifidog has not reached version 
1.0 yet so you can get the latest version by using svn command. create a directory (lets say wifidog-auth) change to that directory and type
<br><br><font size="2">svn checkout <a href="https://dev.wifidog.org/svn/trunk/wifidog-auth" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://dev.wifidog.org/svn/trunk/wifidog-auth</a><br></font>


<span style="font-family: monospace;"><font size="2"><br></font></span>
This will download all the neccessory files. There have been significant changes made to the project since the last upload on sourceforge. I downloaded the sourceforge version and as you said it has line commented out but the newer version has extra else statement. so download the newer one with svn.
<br></div><div><span><br>- V Patel </span></div><div><span><br><br><div><span class="gmail_quote">On 8/26/06, <b class="gmail_sendername">Rajendra Jagad</b> &lt;<a href="mailto:rjagad@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">


rjagad@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hello Patel and Benoit, You guys were right on the the dot. I removed Postgresql and re-install it and now the service starts like It should.<br>I ran a find command to grep any 'unable to connect to database' that shows when I pull up the 
index.php however that comment is only in the install.php file. So I am not sure if index.php does check on install.php before it starts. <br>Line 810 and 849 are the two places where the unable to connect to database shows in the 
install.php script. the problem is 810 is commented out. and If I remove those comments '#&quot; the script will not display in firefox. what is the reason of commting out the following script lines in install.php does anybody remember ?
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Success&lt;BR&gt;&quot;; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #}<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Unable to connect to database on $CONF_DATABASE_HOST&lt;BR&gt;The database must be online to continue.&lt;BR&gt;Please go back and retry with correct values&quot;;
<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; navigation(array(array(&quot;title&quot; =&gt; &quot;Back&quot;, &quot;page&quot; =&gt; &quot;database&quot;)));<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $postgresql_info = pg_version();<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $postgresql_info['server'];
<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($postgresql_info['server'] &gt; $requiredPostgeSQLVersion) { Todo : Do something }<br><br>&nbsp;&nbsp;&nbsp; Apprecaite the help ---------------------------------I am making progress.....slowly...<br><br>Raj</div><div>



<span><br><br><div>
<span class="gmail_quote">On 8/25/06, <b class="gmail_sendername">V Patel</b> &lt;<a href="mailto:sgrlogs@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sgrlogs@gmail.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>yes as Benoit mentioned your installation is somehow messed up, you should be able to start postgresqld service by typing service postgresqld start. But since you can still start pgsql by pointing out where the conf filess try this: try editing pg_hba.conf located at /var/lib/pgsql/data/ add or edit following line to read
<br><br>if you want to use md5 put this<br><br><span style="font-style: italic; font-weight: bold;">host&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://127.0.0.1/32" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">




127.0.0.1/32</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; md5 </span><br><br>or you can put this to enable localhost to access without any encryption.
<br><br style="font-weight: bold;"><span style="font-style: italic; font-weight: bold;">host&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://127.0.0.1/32" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">




127.0.0.1/32</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trust<br><br></span>the default format is this
<br><br>host&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; database&nbsp;&nbsp;&nbsp; user&nbsp;&nbsp;&nbsp; IP-address&nbsp;&nbsp;&nbsp;&nbsp; IP-mask&nbsp;&nbsp;&nbsp;&nbsp; Authentication-method&nbsp;&nbsp;&nbsp;&nbsp; [authentication-option]<br><br>then restart postgresql and apache service. <br>If you want more information on editing that file take a look at the documentation at pgsql site
<br><a href="http://www.postgresql.org/docs/7.3/static/client-authentication.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.postgresql.org/docs/7.3/static/client-authentication.html
</a><br><br><br><div></div><div><span><span class="gmail_quote">On 8/25/06, <b class="gmail_sendername">
Benoit Gregoire</b> &lt;<a href="mailto:bock@step.polymtl.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bock@step.polymtl.ca</a>&gt; wrote:</span></span></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




</blockquote></div><div><span>
On Friday 25 August 2006 03:16, Rajendra Jagad wrote:<br>&gt; When I try to start the postgres service from<br>&gt; system&gt;admin&gt;serversetting&gt;service It never starts<br>&gt; when I open xterm and type &gt;postgres on it says it cannot find the
<br>&gt; configuraiton file If I start manually using option -D<br>&gt; /usr/local/pgsql/data it drops me into the backend if I specife DB name and<br>&gt; user I am in the database I can create tables etc but install.php





 is still<br>&gt; unable to connect and I am still unable to start the service postgres<br>&gt; I try editing .bashrc and $PATH=/usr/local/pgsql/data but still no luck<br>&gt; So I can manually start the data base but not automatic.
<br>&gt;<br>&gt; ANy ideas..<br><br>You have two different problems.&nbsp;&nbsp;First you did not install your<br>distributions, hence it doesn't start properly and with the right permissions<br>from your distribution's init subsystem.&nbsp;&nbsp;You should only install and run
<br>postgres from source if you really know what you are doing.<br><br>Once you fix that, you need to add permission in pg_hba.conf to use md5<br>password based authentication, at least for the wifidog user on localhost.
<br>
<br>&gt; Bye the way the user who logs into the Linux Box must have ownership of<br>&gt; pgsql dir and all it child otherwise it compains about the permission.<br><br>Off course, but the user who logs in the linux box should normally never be
<br>the one who runs postgres.<br><br><br></span></div><div>_______________________________________________</div><div><span><br>WiFiDog mailing list<br><a href="mailto:WiFiDog@listes.ilesansfil.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">




WiFiDog@listes.ilesansfil.org</a><br><a href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</a><br><br></span></div><div></div><br>

</div><br>_______________________________________________<br>WiFiDog mailing list<br><a href="mailto:WiFiDog@listes.ilesansfil.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">WiFiDog@listes.ilesansfil.org
</a>
<br><a href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</a><br><br>



</blockquote>
</div><br>

</span></div><br>_______________________________________________<br>WiFiDog mailing list<br><a href="mailto:WiFiDog@listes.ilesansfil.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">WiFiDog@listes.ilesansfil.org
</a><br><a href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</a><br>


<br>
</blockquote></div><br>

</span></div><br>_______________________________________________<br>WiFiDog mailing list<br><a href="mailto:WiFiDog@listes.ilesansfil.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">WiFiDog@listes.ilesansfil.org
</a><br><a href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</a><br>

<br>
</blockquote></div><br>

</span></div><br>_______________________________________________<br>WiFiDog mailing list<br><a href="mailto:WiFiDog@listes.ilesansfil.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">WiFiDog@listes.ilesansfil.org
</a><br><a href="http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog</a><br>
<br>
</blockquote></div><br>