serverinfo
serverinfo copied to clipboard
PHP Max Execution Time in Systeminfo GUI does not reflect actual PHP value
name: 🐛 Bug report about: Help us improving by reporting a bug labels: bug, 0. Needs triage
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
I am using the NextCloud Docker container from linuxserver, so references to file locations will be made relative to this setup.
- Edit php-local.ini in "/appdata/nextcloud/php/" to include the following:
max_execution_time = 86400 - Open Nextcloud web GUI
- Navigate to Settings --> System
- Scroll to "PHP" information section. "Max Execution time:" still displays '3600'
Expected behaviour
I would expect that the value after "Max Execution time:" would reflect the value in php-local.ini
Value for "max_execution_time" is reflected correctly in phpinfo.php (as suggested here: https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#label-phpinfo)
Actual behaviour
Value does not change from default 3600.
Server configuration
Operating system: Unraid 6.9.2 Docker based on Alpine 3.13
Web server: NGINX 1.18.0
Database: MariaDB 10.4.20 (MySQL ver 15.1)
PHP version: 7.4.21
Nextcloud version: (see Nextcloud admin page) 22.0.0
Updated from an older Nextcloud/ownCloud or fresh install: Fresh Install
Where did you install Nextcloud from: linuxserver/nextcloud:latest (updated on 18-Jul-2021)
Signing status:
Signing status
Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
No errors have been found.
List of activated apps:
App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Enabled:
- accessibility: 1.7.0
- activity: 2.15.0
- bruteforcesettings: 2.2.0
- circles: 22.0.0
- cloud_federation_api: 1.4.0
- comments: 1.11.0
- contactsinteraction: 1.2.0
- dashboard: 7.1.0
- dav: 1.18.0
- federatedfilesharing: 1.11.0
- federation: 1.11.0
- files: 1.16.0
- files_pdfviewer: 2.3.0
- files_rightclick: 1.1.0
- files_sharing: 1.13.2
- files_trashbin: 1.11.0
- files_versions: 1.14.0
- files_videoplayer: 1.11.0
- firstrunwizard: 2.11.0
- geoblocker: 0.5.1
- logreader: 2.7.0
- lookup_server_connector: 1.9.0
- nextcloud_announcements: 1.11.0
- notifications: 2.10.1
- oauth2: 1.9.0
- password_policy: 1.12.0
- photos: 1.4.0
- privacy: 1.6.0
- provisioning_api: 1.11.0
- recommendations: 1.1.0
- registration: 1.3.0
- serverinfo: 1.12.0
- settings: 1.3.0
- sharebymail: 1.11.0
- support: 1.5.0
- survey_client: 1.10.0
- suspicious_login: 4.0.0
- systemtags: 1.11.0
- text: 3.3.0
- theming: 1.12.0
- twofactor_backupcodes: 1.10.1
- twofactor_totp: 6.1.0
- updatenotification: 1.11.0
- user_status: 1.1.1
- viewer: 1.6.0
- weather_status: 1.1.0
- workflowengine: 2.3.0
Disabled:
- admin_audit
- encryption
- files_external
- user_ldap
Nextcloud configuration:
Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
Config report
[config list.txt](https://github.com/nextcloud/server/files/6858866/config.list.txt)
Are you using external storage, if yes which one:
No
Are you using encryption: No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... No
Client configuration
Browser: Firefox 90.0.1
Operating system: Windows 10 x64 21H1 19043.1110
Logs
Web server error log
Web server error log
Insert your webserver log here
nextcloud/error.log
[nextcloud-error logs.txt](https://github.com/nextcloud/server/files/6858864/nextcloud-error.logs.txt)
Nextcloud log (data/nextcloud.log)
Nextcloud log
[nextcloud logs.txt](https://github.com/nextcloud/server/files/6858862/nextcloud.logs.txt)
Browser log
Browser log
FIREFOX Console Logs
[firefox console logs.txt](https://github.com/nextcloud/server/files/6858860/firefox.console.logs.txt)
What does your phpinfo() say? Strange thing here is that I can set max_execution_time to lets say 7200. The setting seems not being applied as phpinfo() reports max_execution_time => 0 => 0. Also Nextcloud still reports 3600.
https://github.com/linuxserver/docker-nextcloud/issues/258
This was expected behavior (and still is, albeit it behaves slightly differently today versus in OP's NC v22 instance).
The number reported in NC is the accurate figure since it represents what's really in-use.
There is an override in NC that forces max_execution_time to be at least 3600 (same for max_input_time). Since it's done within NC, it won't match your phpinfo() or local php.ini settings.
However in NC >=v25 the behavior was updated slightly so that if those parameters are already configured to something >3600 locally than they won't be overridden. See https://github.com/nextcloud/server/issues/32209
The idea of the v25 change was to set some reasonable defaults while allowing admins to override to higher figures and still maintaining backward compatibility since it had been hardcoded for awhile already.
For the record, looks like it was also backported to some later v24 releases, but that's mostly irrelevant now unless one is running an unsupported release or enterprise-class.
Hence IMO this issue can be closed out since serverinfo is displaying the right value.