php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12003 failed to locate host machine
Submitted: 2001-07-10 05:58 UTC Modified: 2002-05-25 09:23 UTC
From: jan dot suchanek at agropol dot cz Assigned:
Status: Not a bug Package: InterBase related
PHP Version: 4.0.6 OS: Linux Red Hat 7.1 (2.4.2)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jan dot suchanek at agropol dot cz
New email:
PHP Version: OS:

 

 [2001-07-10 05:58 UTC] jan dot suchanek at agropol dot cz
I have a problem with connecting to database server.
I have W2000+Apache1.3.20+PHP4.06 machine and when I connect with
$dbh = ibase_pconnect('interbase.agropol:/opt/interbase/data/ptf.gdb','name','pass'); it works.
The server is Red Hat 7.1. But when I try to connect from itself with
$dbh = ibase_connect('localhost:/opt/interbase/data/ptf.gdb','name','pass');
it returns to me 
Warning: InterBase: Unable to complete network request to host "localhost". Failed to locate host machine. Undefined service gds_db/tcp. in /usr/local/apache/htdocs/cl.php on line 11

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-10 06:02 UTC] derick@php.net
This does not like a PHP error, but PHP is rather relaying the error that InterBase gives.
Are you sure Interbase running and the name 'localhost' resolves into an IP address?

Derick
 [2001-07-11 02:06 UTC] jan dot suchanek at agropol dot cz
Sure. This problem is only on the server, where interbase is running.
 [2001-07-11 07:06 UTC] jan dot suchanek at agropol dot cz
Compilation of php was:
./configure --with-interbase=/opt/interbase --with-apxs=/usr/local/apache/bin/apxs --enable-debug.

Othervice ... I can't find a file php_interbase.so
 [2001-07-22 19:24 UTC] joey@php.net
The error message is implying that you have not made
the required updates to your /etc/services file that
Interbase requires.

Make sure the following line appears somewhere in your
/etc/services:

gds_db         3060/tcp

(This is assuming you haven't done anything silly which
would make interbase run on a port other than the default.)
 [2001-07-22 19:25 UTC] joey@php.net
BTW, please also update this bug to actually tell us which
OS you are running. In the OS type above, you have said:
Linux Red Hat 7.1 (2.4.2)

But in the text of the bug report, you said:
W2000+Apache1.3.20+PHP4.06

Which is it?
 [2001-07-23 07:41 UTC] jan dot suchanek at agropol dot cz
This problem I have is on Linux server.
In /etc/services is gds_db    3050/tcp
Are you sure with port 3060? 3050 is standard.

Systems.
I have Linux server as intranet server and W2000 station as testing server.
 [2001-07-27 12:02 UTC] sniper@php.net
status -> open.

 [2002-05-25 09:23 UTC] derick@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC