• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

phpPgAdmin includes break module integration

SE_Frank

New Pleskian
APC configuration breaks module integration

Hi,

After doing it for other panels, we're now working on implementing our module/plugin in Plesk as well by employing the same technique as other modules are doing (e.g. Softaculous)
For some reason, something (I assume is auth.php3) is including phpPgAdmin files in a lot of the requests, causing 75% of our module loads to fail with the following PHP errors:
Warning: include_once(./libraries/lib.inc.php) [function.include-once]: failed to open stream: No such file or directory in /opt/psa/admin/htdocs/domains/databases/phpPgAdmin/functions.php on line 10

Warning: include_once() [function.include]: Failed opening './libraries/lib.inc.php' for inclusion (include_path='/usr/local/prospamfilter/library/') in /opt/psa/admin/htdocs/domains/databases/phpPgAdmin/functions.php on line 10

Notice: Undefined variable: misc in /opt/psa/admin/htdocs/domains/databases/phpPgAdmin/functions.php on line 539

Fatal error: Call to a member function printHeader() on a non-object in /opt/psa/admin/htdocs/domains/databases/phpPgAdmin/functions.php on line 539

Is there a workaround for this?
Its quite bad that this system is included in all requests.
 
Last edited:
I've done some more testing and it appears that this is being caused when the Zend Framework is activated.
Further investigation showed that the used APC configuration for lighttpd (sw-cp-server) is the culprit here.

After I disabled APC in "/usr/local/psa/admin/conf/php.ini" by adding
apc.cache_by_default = 0

And restarting psa, it does work now.
 
No need to change the ini file, just add:
ini_set('apc.cache_by_default', 0);
as first line of your PHP page and restart PSA (to allow the APC cache to be cleared).

All requests are now properly handled by my app, and it is not affected by the APC cache "corruption".
 
Back
Top