Nextcloud uses old PHP version

OK, that could be the problem:

run

sudo a2dismod php8.1
sudo systemctl reload apache2

Then it should work.

I did that. No difference.

When I stop php7.4-fpm, Nextcloud again is down :frowning:

How did you stop it?

Since it is already disabled.

Have you tried restart apache2 and php8.1-fpm (not just reload) or reboot if nothing works?

I don’t know!

I have disabled it, RESTARTed apache2, but it is still running and in use.

ps -ef| fgrep -i php-fpm.
root 107484 1 0 15:47 ? 00:00:01 php-fpm: master process (/etc/php/8.1/fpm/php-fpm.conf)
root 114947 1 0 18:34 ? 00:00:00 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)

And what php-version is shown on the server info page in:

https://[yourcloud.com]/settings/admin/serverinfo

Version: 7.4.33

Try
tail -f /var/log/apache2/error.log
and then run
sudo systemctl reload apache2

Look what it says.

I would just uninstall everything to PHP7.4 (apt-get remove ...). Does not belong to the release you are using anyway. And then I would look for a guide on how to configure Nextcloud, where it explains exactly how to configure php-fpm.

1 Like

I think that, if you haven’t already done it, you should modify the apache configuration file for you domain under /etc/apache2/sistes-enabled/yourdomain.org.conf and change the php version for the SetHandler variable.

2 Likes

I agree above will solve it.

if not it’s a .htaccess issue

Thank You all for Your support.
I will check it next week and let You know.

Thank You Alessandro! That did the trick :slight_smile:

Great! Now you have some extra tools to help someone else solve the same problem.

1 Like