So if I understand correctly, your PSQL database is on the Linux server where PHP is running.
Have you tried running PHP from the command line to execute the page that accesses the PSQL ODBC?
What kind of PHP page have you tried? Is it simply an ODBC Connect or does it do more than that?
Here's a page I've tried in the past that has worked:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>PHP Sample</TITLE>
</HEAD>
<BODY>
<?php
$conn=odbc_connect("Demodata","","","");
$sql="select * from class";
$rs=odbc_exec($conn,$sql);
echo "<table border=1>\n";
$numfields = odbc_num_fields($rs);
for($i=1;$i<=$numfields;$i++){
$fn=odbc_field_name($rs,$i);
echo "<th>$fn</th>";
}
echo "\n";
while(odbc_fetch_row($rs)){
echo "<tr>\n";
for($i=1;$i<=$numfields;$i++){
$fv=odbc_result($rs,$i);
echo "<td>$fv</td>";
}
echo "</tr>\n";
}
echo "</table>\n";
echo "<p>Number of Fields: $numfields</p>\n";
?>
</BODY>
</HTML>
Does that work for you? It uses the PSQL DEMODATA database.
Also, have you tried PSQL v9.5? It's the current version of PSQL and is a service pack for PSQL 9.10.