Subject Re: [firebird-php] Trouble getting php-interbase to work with PHP 5.4 on CentOS 7
Author Paul Vinkenoog
Hi Lester,

> Not sure if attachments are working here if not I'll post a link, but
> http://lsces.co.uk/ibtest.php is a working test setup.
> I use it to check later versions of PHP are OK.

Thanks, I installed the script on the server in question. Same result as with my own script:

Unable to complete network request to host "localhost". Failed to establish a connection.

Figures, because it's ib_connect() that fails, no matter from what script you call it.

I'm starting to wonder if it's a process or user thing: could it be possible that processes owned by the apache user can't initiate TCP/IP connections, not even to localhost? But with an empty hostname, there's no TCP/IP connection and even *that* doesn't work - at least not from the PHP script.

I noticed that local connections from PHP to MySQL *do* work, but outbound connections don't:

Can't connect to MySQL server on 'zon.vinkenoog.nl' (13)

(And of course, the firewall on zon is configured to accept inbound connections from the troublemaking server.)


Paul Vinkenoog