[Solved] Nextcloud 23: How to switch PHP version to 8.0?


I installed my nextcloud on ubuntu server 20.04, using php8.0, but now for some reason it switch to php8.1, so when i try to run this command:

sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess

to remove the index.html after the nextcloud address, it gives me this error:

This version of Nextcloud is not compatible with > PHP 8.0.<br/>You are currently running 8.1.1.root

My question is, how do i switch my nextcloud back to work with php8.0? my server is running on apache btw

The answer can easily been found on the internet:

1 Like

Tyvm, that did it :slight_smile:

1 Like