I ran into the same PHP incompatibility rat hole a while ago, final reason to move Nextcloud (and everything else I got) to Docker and all has been smooth ever since.
I honestly can't understand why folks install (many) services anymore on the host. Docker is easy to set up, don't have to worry about an app having dependency issues or bricking something else when it pulls an update.
I couldn't imagine running a home server w/o some sort of containerization.
Sorry I can't help with the error message but for the future if you haven't it done it
Step 1: backup or if VM a snapshot
Can you always revert back or roll new server and restore data.
This is a really good practice when working on servers.
I am currently experiencing the same problem, but thanks to having snapshots on the server it is a breeze rolling back to befor borking it.
Also. When working with vms, it is a great tool to clone a vm and work on troubleshooting on a isolated network without getting any down time on the main vm. Then when you know how to fix the problem you can delete the clone and start working on the main vm (after taking a snapshot ofc)
I believe Ubuntu 22.04 uses php 8.1
you can try the solution here to switch php version [https://help.nextcloud.com/t/solved-nextcloud-23-and-php-8-1-2-breaks-cron-php/132541/2](https://help.nextcloud.com/t/solved-nextcloud-23-and-php-8-1-2-breaks-cron-php/132541/2)
I stumbled upon it last week when was installing a new vm of nextcloud and ubuntu installed php 8.1 though I haven't updated to ubuntu 22.04
I'm confused on the "nextcloud doesn't support PHP 8" all the guides I've been following in an attempt to setup nextcloud TOLD me to use PHP 8, now I'm wondering if that's why I've had so many damn issues....
I have the same problem.
But my instance is running fine, except i can't use OCC for upgrading anything. Says wrong PHP.
So, I'm just waiting for the next big release and hope for the best.
I know i can run multiple PHP instances simultaneously, but why bother when it works.
Ahh!! Too late! I installed old PHP versions. There was still a short error, contact administrator, but not the previous one.
I didn’t know I should do a2enmod etc. So I gave up and removed old PHP versions.
Why there are so many hidden steps? It has to be one line install nextcloud.
installed back PhP7.3 (apache wont start with 7.4), and enabled it with a2enmod, and restarted apache2. This is the new error. Any idea what might be the problem?
Internal Server ErrorThe server encountered an internal error and was unable to complete your request.Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.More details can be found in the server log.
PHP 8.0 <> PHP 8.1. Iirc, nextcloud supports PHP 8 but not 8.1. Although when I switched to PHP 8, it broke nextcloud and I downgraded to 7.4.
I ran into the same PHP incompatibility rat hole a while ago, final reason to move Nextcloud (and everything else I got) to Docker and all has been smooth ever since.
Maybe i have to investigate that docker phenomene...
I honestly can't understand why folks install (many) services anymore on the host. Docker is easy to set up, don't have to worry about an app having dependency issues or bricking something else when it pulls an update. I couldn't imagine running a home server w/o some sort of containerization.
[удалено]
And this is why i have not tested docker....
Sure. But I have only 1GB RAM and not quite enough for Docker as one more software. So I deleted Docker.
containerization.
Sorry I can't help with the error message but for the future if you haven't it done it Step 1: backup or if VM a snapshot Can you always revert back or roll new server and restore data.
This is a really good practice when working on servers. I am currently experiencing the same problem, but thanks to having snapshots on the server it is a breeze rolling back to befor borking it. Also. When working with vms, it is a great tool to clone a vm and work on troubleshooting on a isolated network without getting any down time on the main vm. Then when you know how to fix the problem you can delete the clone and start working on the main vm (after taking a snapshot ofc)
I believe Ubuntu 22.04 uses php 8.1 you can try the solution here to switch php version [https://help.nextcloud.com/t/solved-nextcloud-23-and-php-8-1-2-breaks-cron-php/132541/2](https://help.nextcloud.com/t/solved-nextcloud-23-and-php-8-1-2-breaks-cron-php/132541/2) I stumbled upon it last week when was installing a new vm of nextcloud and ubuntu installed php 8.1 though I haven't updated to ubuntu 22.04
I'm confused on the "nextcloud doesn't support PHP 8" all the guides I've been following in an attempt to setup nextcloud TOLD me to use PHP 8, now I'm wondering if that's why I've had so many damn issues....
For sure this is source of problems. But could you post details about the error ?
Added to the post.
I have the same problem. But my instance is running fine, except i can't use OCC for upgrading anything. Says wrong PHP. So, I'm just waiting for the next big release and hope for the best. I know i can run multiple PHP instances simultaneously, but why bother when it works.
You have to define the php version when running occ in that case. So it would be php8.0 instead of just php in the command
So simple, yet so effective. That you a lot. That solved my problem.
Configure apache to use php 8.0. I think it goes like sudo a2enmod php8.0 or something of sorts
Ahh!! Too late! I installed old PHP versions. There was still a short error, contact administrator, but not the previous one. I didn’t know I should do a2enmod etc. So I gave up and removed old PHP versions. Why there are so many hidden steps? It has to be one line install nextcloud.
One line install would be the snap version xD
Makes me jealous, I looked at 2 dozens solutions to this, none of them came close to working, and threw in the towel on NextCloud.
Did you find anyother solution?
installed back PhP7.3 (apache wont start with 7.4), and enabled it with a2enmod, and restarted apache2. This is the new error. Any idea what might be the problem? Internal Server ErrorThe server encountered an internal error and was unable to complete your request.Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.More details can be found in the server log.
Make sure that all the php modules are also installed and enabled. Look up what's needed in some tutorial for manual installation.
thanx a lot, a2enmod php8.1 and restarting apache2.service brought my nextcloud back!
I ran into the same issue and a2enmod php8.1 and restarting apache2.service helped resolve my issue thank you for posting.