i have installed php7.4 then i have with sudo update-alternatives --config php switchd to php7.4
Auswahl Pfad Priorität Status
0 /usr/bin/php8.1 81 automatischer Modus
1 /usr/bin/php7.2 72 manueller Modus
2 /usr/bin/php7.3 73 manueller Modus
3 /usr/bin/php7.4 74 manueller Modus
4 /usr/bin/php8.1 81 manueller Modus
sudo -u www-data php /var/www/owncloud/occ status i get this:
Error: Class ‘\OC\Memcache\APC’ not found in /var/www/owncloud/lib/private/Memcache/Factory.php:89
Stack trace: #0 /var/www/owncloud/lib/private/Server.php(465): OC\Memcache\Factory->__construct() #1 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(122): OC\Server->OC{closure}() #2 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): Pimple\Container->offsetGet() #3 /var/www/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\SimpleContainer->query() #4 /var/www/owncloud/lib/private/Server.php(1242): OC\ServerContainer->query() #5 /var/www/owncloud/lib/base.php(834): OC\Server->getMemCacheFactory() #6 /var/www/owncloud/lib/base.php(574): OC::registerAutoloaderCache() #7 /var/www/owncloud/lib/base.php(1071): OC::init() #8 /var/www/owncloud/console.php(74): require_once(’/var/www/ownclo…’) #9 /var/www/owncloud/occ(11): require_once(’/var/www/ownclo…’) #10 {main}joerg@Homeserver:~$
When i start the owncloud startsite i get this:
This version of ownCloud requires at least PHP 7.3.0
You are currently running PHP 7.2.34-33+ubuntu18.04.1+deb.sury.org+1. Please update your PHP version.
For ownCloud both command line (CLI) PHP and the apache module have to be the same version.
You already managed to fix the CLI variant, but your apache is still using the old module. Usually the following lines (run as root/sudo) should fix this issue:
php7.4-apcu ist schon die neueste Version (5.1.21+4.0.11-8+ubuntu18.04.1+deb.sury.org+1).
php7.4-apcu wurde als manuell installiert festgelegt.
owncloud.log: (only the last entry)
{“reqId”:“25… …c6”,“level”:4,“time”:“2022-08-30T12:27:15+00:00”,“remoteAddr”:“XXX.XXX.XXX.XXX”,“user”:"–",“app”:“remote”,“method”:“GET”,“url”:"/status.php",“message”:“Class ‘\OC\Memcache\APC’ not found”}
Now generaly PHP is not working - I have tested it with a other script.
PHP7.4 EOL is in 3 months. Is there plans to support PHP 8.1 prior to 7.4 reaching EOL? No security patches will be released for PHP7.4 once this happens. I do not plan on supporting PHP7x on my server once this happens and then my owncloud setup will break at that time. Please release an update before EOL occurs for 7.4.
How do you suppose I found this topic in the first place I wonder?
Most of the posts that say there is no support intended are several years old and it’s quite possible that the position on this topic might have changed by now, seeing as how PHP7x is hitting EOL in a few weeks and will no longer be updated, even for security patches.
If there really is still no plan to update this to php8 then that’s basically killing this project IMO.