• 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.

Resolved PHP APCU Error with Nextcloud on Plesk

Fixel

New Pleskian
Hi everybody,

first of all:

im running nextcloud on my root server. And I'm not a linux professional.

Plesk Onyx Version 17.5.3 Runs at Ubuntu 14.04.5 LTS‬ with PHP version 7.0 used for nextcloud.

As in the Nextcloud performance Guide written, i tried to install APC/APCU inside Plesk to get it work with nextcloud and higher the performance.

I totally failed my plan and didn't get it work.

Since now i get errors, they are coming from the failed APCU installation. They are like every min in my nextcloud log and also in my Cron log inside Plesk. Its kinda annoying.

I dont really need the extension for php, I just wanted to test if it runs smoother or something. - Sadly I didn't get that far...

My Solution to solve this Problem is simply try to disable/uninstall/remove this extension.
But thats exactly my question, how to remove all the stuff which provides all the errors. I already tried some stuff, but didn't get it work.

Here are the Errors:

The Error inside Nextlcloud:
Code:
PHP Startup: Unable to load dynamic library '/opt/plesk/php/7.0/lib/php/modules/apcu.so' - /opt/plesk/php/7.0/lib/php/modules/apcu.so: cannot open shared object file: No such file or directory at Unknown#0

The Error inside Plesk while executing a CronJob, needed for nextcloud. (didnt get that error before installing APC)
Code:
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/plesk/php/7.0/lib/php/modules/apc.so' - /opt/plesk/php/7.0/lib/php/modules/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/plesk/php/7.0/lib/php/modules/apcu.so' - /opt/plesk/php/7.0/lib/php/modules/apcu.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/opt/plesk/php/7.0/lib/php/modules/apcu.so' - /opt/plesk/php/7.0/lib/php/modules/apcu.so: cannot open shared object file: No such file or directory in Unknown on line 0


Is there anyone who can help me solving my Problem?

Kind regards,

Felix

PS: I hope I'm in the correct forum right here.
 
First of all you need to find ini file where apcu.so module loading is specified. You can do it with following command:

# grep -R apcu.so /opt/plesk/php/7.0/etc/*

when just edit this file with commenting the line where apcu.so module is mentioned.
After that run

# plesk bin php_handler --reread

That's all.
 
Hi,

thank you for you're answer!

Looks fine for now, no errors atm anymore.

Thank you very much for helping me:D
 
Back
Top