Re: [PHP-DB] Connecting to database fails

2016-08-15 Thread Rich Shepard

On Sat, 13 Aug 2016, Lester Caine wrote:


Do you actually have the postgresql PHP driver installed. Database drivers
are not installed by default as you only really need the ones you are
actually using.


  Should be installed:

/usr/lib/php/extensions/pgsql.so
/usr/lib/php/extensions/pdo_pgsql.so

and /etc/httpd/php.ini contains both.

  Still see the error that the connection cannot be established after
re-starting httpd.

  Where else do I look?

Thanks,

Rich

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Connecting to database fails

2016-08-13 Thread Lester Caine
On 14/08/16 00:00, Rich Shepard wrote:
>   Ah, yes. Pat likes MySQL/MariaDB so he does not build php to support
> postgres. I'll rebuild it and that should solve the problem.

I've been with Firebird/Interbase since before PHP existed ;)

-- 
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Connecting to database fails

2016-08-13 Thread Rich Shepard

On Sat, 13 Aug 2016, Rich Shepard wrote:


 Not installed. I'll search the Web to learn how to install it.


  Ah, yes. Pat likes MySQL/MariaDB so he does not build php to support
postgres. I'll rebuild it and that should solve the problem.

Thanks again,

Rich

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Connecting to database fails

2016-08-13 Thread Rich Shepard

On Sat, 13 Aug 2016, Lester Caine wrote:


Do you actually have the postgresql PHP driver installed. Database drivers
are not installed by default as you only really need the ones you are
actually using.


Lester,

  Well, that would make a difference. I did not know how to check for this.


Should be php5-pgsql


  Not installed. I'll search the Web to learn how to install it.

Thanks very much,

Rich

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Connecting to database fails

2016-08-13 Thread Lester Caine
On 13/08/16 21:23, Rich Shepard wrote:
> With no other PHP applications installed here I have no experience in
> determining where this stoppage occurs. Pointers on how to isolate the
> source of the problem, than how to fix it, are needed.

Do you actually have the postgresql PHP driver installed. Database
drivers are not installed by default as you only really need the ones
you are actually using.

Should be php5-pgsql

-- 
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php