• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

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