You might try upgrading your phppgadmin configuration manually. I did this on Debian 9.6 a few months ago and it worked okay. On Debian I'm running php version 7.2.11 (via ppa: ondrej/php) and postgresql version 11 (via postgresql.org's own ppa). This all worked fine, except for for phppgadmin, which I had to upgrade manually by installing the following files from this
github link:
/usr/share/phppgadmin/classes/database/Connection.php
/usr/share/phppgadmin/classes/database/Postgres.php
/usr/share/phppgadmin/classes/database/Postgres10.php
/usr/share/phppgadmin/classes/database/Postgres11.php
/usr/share/phppgadmin/classes/database/Postgres92.php
/usr/share/phppgadmin/classes/database/Postgres93.php
/usr/share/phppgadmin/classes/database/Postgres94.php
/usr/share/phppgadmin/classes/database/Postgres95.php
/usr/share/phppgadmin/classes/database/Postgres96.php
On FreeBSD, the correct path for these files should be
/usr/local/www/phpPgAdmin/classes/database/ rather than
/usr/share/phppgadmin/classes/database/. I haven't actually tried this on FreeBSD myself but it might be worth a try if you're determined to use Postgresql 11.
There may or may not be another problem here; I'm not sure but I'll go ahead and mention it anyway. On FreeBSD I'm still using postgresql version 9.5 because when I installed php72-pgsql it wanted to install postgresql95-client even though I had already installed postgresql11-client. I have no particular need for Postgresql 11; my interest is mainly in the upgraded versions of php, so I gave up early and just regressed back to using Postgresql 9.5. But then, today, while looking things over, I noticed that
pkg search php73-pgsql
yields no results, although I can still find
pkg search php72-pgsql
. Then I checked for
pkg search phppgadmin-php73
and I can't find it either.
This might likely be because I'm using i386 instead of amd64, and they just haven't gotten around to to porting this software to i386. It's also possible that they've quit supporting i386. I really don't know. What I am pretty sure about is that if you're using php and postgresql together with apache24, you will need version compatibility between postgresql, php, and the php-pgsql package. And jronald's message: "Unknown extension pgsql for PHP 73" suggests that there may not be such a package yet even for an amd64 deployment.