• 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 Adding apcu.ini to php.d fails

f31ixx

New Pleskian
Dear forum members,

Sorry for creating again a topic about installing APCu but none of the threads before in this forum helped me with my issue.

I have a Nextcloud installed on my server and therefore I need APCu for caching.
I used this step by step guide to do it: How to install APCu module on Plesk server ? - Knowledgebase - Cloud Services Store Limited
The installation itself worked fine but adding the apcu.ini to the php.d file via
Code:
echo "extension=apcu.so" > /opt/plesk/php/7.3/etc/php.d/apcu.ini
failed. It said that I don't have access to it even if I've sudo-rights (see attatchment).

Does anyone of you have an idea of how to solve this issue?

Here some additional information about the server:
- Operating System: Ubuntu 18.04.5 LTS
- Kernel: Linux 4.15.0
- Architecture: x86-64
- PHP-Version: 7.3.27
- APCu-Version: 5.1.20
- Plesk-Version: Obsidian 18.0.34

Thanks for any help in advance!

Have a good day and kind regards,

f31ixx
 

Attachments

  • php-d-issue2.png
    php-d-issue2.png
    11.5 KB · Views: 7
Last edited:
Are you trying this as the Root user? if you are, this is the only thing I think of,

Please try,

# cd /opt/plesk/php/7.3/etc/php.d/

# ls -l apcu.ini

If any output,

# lsattr apcu.ini

If you have "i" in the above output, This can prevent even the root user editing this file. In that case,

# chattr -i apcu.ini
 
Back
Top