[Bug]: occ setupchecks
- OPcache Configuration Checks should not be performed if opcache.enable_cli
is disabled
#46351
Labels
3. to review
Waiting for reviews
29-feedback
bug
feature: occ
feature: settings
good first issue
Small tasks with clear documentation about how and in which place you need to fix things in.
Bug description
When running the
occ setupchecks
command after upgrading to v29.0.3, the following errors related to PHP OPcache configuration are encountered:It appears that the OPcache checks are being performed even when
opcache.enable_cli
is disabled. Since OPcache is intentionally disabled for CLI calls by default, these checks should be skipped in this context.see: nextcloud/docker#2184 (comment)
Steps to reproduce
occ setupchecks
command.Expected behavior
The
occ setupchecks
command should:Skip OPcache checks if
opcache.enable_cli
is disabled.Only perform OPcache checks if
opcache.enable_cli
is enabled.Installation method
Community Docker image
Nextcloud Server version
29
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 28 to 29)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
Link to conversation: nextcloud/docker#2184 (comment)
Proposed Solution
opcache.enable_cli
is enabled: Before running any OPcache checks, the command should first verify whetheropcache.enable_cli
is enabled.opcache.enable_cli
is disabled (which is a reasonable default and production value), the command should not perform any OPcache checks or return related errors.opcache.enable_cli
is enabled, the command can run the OPcache checks for debugging and development purposes.The text was updated successfully, but these errors were encountered: