How to get acme.json renewed?

Hi there,

I have Nextcloud 25.0.3 running in a LXC on a proxmox server at home.
For this I did portforwarding.
I used this documentation…
https://docs.nextcloud.com/server/23/admin_manual/installation/example_ubuntu.html

when I do:

guyf@nextcloud:~/nextcloud$ sudo nextcloud.enable-https lets-encrypt
sudo: nextcloud.enable-https: command not found
guyf@nextcloud:~/nextcloud$ 

or

guyf@nextcloud:~/nextcloud$ sudo -u www-data php occ -V
Could not open input file: occ

Nextcloud is running fine, but I get warnings that my certificates are about to expire so why do the 2 commands not work and how can I resolve this and get auto renewal of my letsencrypy certificates.

Thanks for reading

This command isn’t from NextcloudPi? They have some commands and adjustments of the operating system, but you need this specific image, it doesn’t just work on whatever Linux distribution (there are bots for letsencryt that you can use directly: man letsencrypt).

In the linked manual, you moved nextcloud to /var/www, so you have to go into that folder, it should contain a file occ.

Thanks for answering, it indeed had that file, but now it throws an error.
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)