• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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