The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.
If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.
Getting help
In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.
Before clicking submit: Please check if your query is already addressed via the following resources:
(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can.
The Basics
Nextcloud Server version (e.g., 29.x.x):
30.0.4
Operating system and version (e.g., Ubuntu 24.04):
Raspberry OS 12 Bookworm
Web server and version (e.g, Apache 2.4.25):
2.4.62
PHP version (e.g, 8.3):
8.2
MariaDB version:
10.11.6
Is this the first time you’ve seen this error? (Yes / No):
Yes
When did this problem seem to first start?
After new installation
Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
unzipped latest nextcloud package, over SSH
Are you using Cloudflare, mod_security, or similar? (Yes / No)
no
Summary of the issue you are facing:
I did a fresh install on Raspberry Pi. I used this guide: How to Setup a Raspberry Pi Nextcloud Server - Pi My Life Up. Apache works fine, PHP was a problem (8.4 didn’t work, 8.2 does). I installed and removed a few times until I got it right. Now I can see the web UI from NextCloud (before, the PHP code was not rendered).
As in the guide, I made a nexcloud db and user. But I get:
I restarted the server a few times, also restarted the raspberry to be sure.
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.
There is nothing in the nextcloud.log!
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____:
Doesn't seem relevant
I found this question for other versions of PHP, not this version.
EDIT:
php -m gives:
[PHP Modules]
Core
date
filter
hash
json
libxml
openssl
pcntl
pcre
random
Reflection
session
sodium
SPL
standard
zlib
[Zend Modules]
Sorry, but Gus obviously missed telling you to read the nextcloud admin documentation and read carefully the error message: Believe it - you are your server administrator, you have to install the modules, it is not up to us.
There in step 4 you install the different php modules. The current raspbian (if it is based on debian bookworm) should then support php 8.2 out of the box (no external modules required).
With apt-cache search package-name you can search for packages (you can just search for parts of the name). Especially if tutorials are updated, package names can change slightly.
I don’t see curl, simplexml, …
so they are really missing. For the webinterface, make sure to restart apache (php -m from command line starts php directly, and the configuration might slightly differ from what is run through the webserver. In /etc/php*/, you have a cli config for command line, and apache2 for the apache module).
$ sudo apt install php8.2-zip php8.2-xml php8.2-xmlwriter php8.2-xmlreader php8.2-mbstring php8.2-gd php8.2-curl php8.2-pdo php8.2-simplexml php8.2-dom php8.2-mysql
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd... Klaar
De statusinformatie wordt gelezen... Klaar
Let op, 'php8.2-xml' wordt geselecteerd in plaats van 'php8.2-xmlwriter'
Let op, 'php8.2-xml' wordt geselecteerd in plaats van 'php8.2-xmlreader'
Let op, 'php8.2-common' wordt geselecteerd in plaats van 'php8.2-pdo'
Let op, 'php8.2-xml' wordt geselecteerd in plaats van 'php8.2-simplexml'
Let op, 'php8.2-xml' wordt geselecteerd in plaats van 'php8.2-dom'
php8.2-zip is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-xml is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-mbstring is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-gd is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-curl is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-common is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-mysql is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
0 opgewaardeerd, 0 nieuw ge�nstalleerd, 0 te verwijderen en 1 niet opgewaardeerd.
Everything is already installed? Except it says php8.2-xml is selected in stead of php8.2-xmlwriter, php8.2-xmlreader, php8.2-pdo, php8.2-simplexml and php8.2-dom…
I did that, and again after getting the error message:
$ sudo apt install php8.2 php8.2-gd php8.2-sqlite3 php8.2-curl php8.2-zip php8.2-xml php8.2-mbstring php8.2-mysql php8.2-bz2 php8.2-intl php8.2-smbclient php8.2-imap php8.2-gmp php8.2-bcmath libapache2-mod-php8.2
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd... Klaar
De statusinformatie wordt gelezen... Klaar
php8.2 is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-gd is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-sqlite3 is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-curl is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-zip is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-xml is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-mbstring is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-mysql is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-bz2 is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-intl is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-smbclient is reeds de nieuwste versie (1.1.2-2+0~20241126.30+debian12~1.gbpb221e0).
php8.2-imap is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-gmp is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
php8.2-bcmath is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
libapache2-mod-php8.2 is reeds de nieuwste versie (8.2.27-1+0~20241224.69+debian12~1.gbp7d3194).
0 opgewaardeerd, 0 nieuw ge�nstalleerd, 0 te verwijderen en 1 niet opgewaardeerd.
I checked it again, my NextCloud version is 30.0.4.
I tried with PHP versions 8.3 and 8.4, but if I tried those, an example.php page wouldn’t show in my browser (although if I looked at the source code, it was there).
I don’t understand to much of that, but since 8.2 is recommended in the guide I used, I went back to that version. Do you think the version of PHP can cause the error?
This file: /etc/php/8.2/cli/php.ini doesn’t exist on my system. /etc/php/8.2/apache2/php.ini does.
I’m sorry, I don’t know what to do with this.
I clearly installed everything as in the guide, and also what is mentioned in this thread, but somehow the modules are not there…
They are not seen, not found, … ?
Somewhere, I so mention of data/www and data/www/html. Could it be Nextcloud is in the wrong directory?
Yeah, I know about that.
But I use the same Raspberry Pi voor Syncthing and Jellyfin (I first tried those, to see how it went using it as a server). I also configured Caddy to have a secure connection to Jellyfin.
I guess I could first install Nextcloudpi and later add Syncthing and Jellyfin… maybe if I have to much spare time, but for the moment I’m happy with how those are configured. (Syncthing is really easy and fast, but with Jellyfin I had a some trouble setting it up).
The guy from PiMyLifeUp is Emmet, from NextCloudPi is theCalcaholic/Tobias Knöppler, who’s Gus?
I’m not sure if this helped, but I upgraded again to PHP8.3.
Then I installed these extra parts:
sudo apt install php8.3-mysql php8.3-mbstring php8.3-gd php8.3-curl php8.3-zip php8.3-xml
Some of them where already there, but not all of them.
sudo apt install php8.3-zip php8.3-dom php8.3-xml php8.3-mbstring php8.3-gd php8.3-curl php8.3-simplexml
Again, some where there, but not all of them.
So some modules didn’t install by just following the guide.
I noticed, while switching from one PHP-version to another, that somehow, although you seem to copy-paste the same components, adding and removing, still leftovers stay and others don’t get installed fully. Strange.
EDIT:
After getting into the UI, I still had a lot of errors in the overview settings. did helped fixing those:
I was still missing some modules, it’s recommended to also install these: sudo apt-get install php8.3-gmp php8.3-bcmath php8.3-intl
For the “Your web server is not properly set up to resolve /nextcloud/ocm-provider/.” error and the "Your web server is not properly configured to resolve “/.well-known/webfinger” it was enough to do: sudo a2enmod rewrite
You also need to install later: sudo apt install redis-server php8.3-redis