The place I work is migrating our site from a hosting to google cloud. The problem is that our site consume data from a Firebird database from another server and in the new virtual server we can't connect most times (just 1 out of 6 at most).
The site is old (we use pear and no framework), but too big to remake from scratch and the client is too important to be messing around with the availability of the application.
We connect this way:
$dsni = "ibase://user:password@SERVER_IP:3050/DB_NAME";
$data = DB::connect($dsni);
if (PEAR::isError($data)) {
echo $data->getDebugInfo();
exit();
}
This works perfectly fine in our actual server: Ubuntu Server 14.04.1 LTS with a php-firebird-2.5 driver.
I've tried it in my desktop and also works with Mint 17 and same Firebird driver. But in the google-cloud server with an Ubuntu Server 18.04 LTS and php-firebird-3.0 driver doesn't.
The next error shows up:
[nativecode=connection rejected by remote interface] **
ibase://user:password@SERVER_IP:3050/DB_NAME
I'm believing it could be the driver problem, but i couldn't figure out a way to downgrade it to 2.5 in the 18.04 distro.
Can anyone please give me a hand?