CLI (command line interface) and web server can use different PHP versions installed at the server with different PHP extensions installed. Make sure that the version of PHP used by CLI has APCu extension installed.
You can check what version is used in CLI via the following command:
php -v
Then you can install the necessary PHP extensions for this specific version.
hi.
Thank you for answer.
If do php -v
Zend Engine v4.2.15, Copyright (c) Zend Technologies
with Zend OPcache v8.2.15, Copyright (c), by Zend Technologies
Hi Thank you for reply
that command error occur.
E: Unable to locate package php7.4-apcu
E: Couldn’t find any package by glob ‘php7.4-apcu’
When installing php-apcu, it is only installed on php8.1, so I installed it manually.
Would this be a problem?
The latest cscart version support php8.1 and you can change current php version using this update-alternatives --config php . choose php8.1 and then fpm sock also change to php8.1
restart nginx and fpm server.
In other cases you can use php8.0 still support for cscart platform and all the changes mentioned earlier.
Thanks