Subject | Re: [firebird-php] Trouble getting php-interbase to work with PHP 5.4 on CentOS 7 |
---|---|
Author | Paul Vinkenoog |
Post date | 2015-04-16T20:16:20Z |
Hi Lester,
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
> Not sure if attachments are working here if not I'll post a link, butThanks, I installed the script on the server in question. Same result as with my own script:
> http://lsces.co.uk/ibtest.php is a working test setup.
> I use it to check later versions of PHP are OK.
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