• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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