When configuring max_execution_time and max_input_time in php.ini the new settings will not take and settings/admin/serverinfo will forever show 3600 no matter what you set it to. This is not the case with other settings such as max_file_size.
I am pretty sure that the problem is these two lines of code where these two variables are hard coded to 3600:
Changing the hard coded value will make the web interface update to the value you set, indicating that indeed Nextcloud is using the hard coded value rather than the value the administrator has configured in php.ini.
{
"system": {
"memcache.local": "\\OC\\Memcache\\APCu",
"appstoreenabled": false,
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"forcessl": true,
"overwriteprotocol": "https",
"objectstore": {
"class": "\\OC\\Files\\ObjectStore\\S3",
"arguments": {
"bucket": "***REMOVED SENSITIVE VALUE***",
"key": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"region": "us-east-1",
"hostname": "***REMOVED SENSITIVE VALUE***",
"port": "",
"objectPrefix": "urn:oid:",
"autocreate": false,
"use_ssl": true,
"use_path_style": true,
"legacy_auth": false
}
},
"csrf.disabled": true,
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***",
"localhost",
"***REMOVED SENSITIVE VALUE***",
"***REMOVED SENSITIVE VALUE***",
"***REMOVED SENSITIVE VALUE***"
],
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"config_is_read_only": true,
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"dbport": "3306",
"dbtableprefix": "oc_",
"dbtype": "mysql",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"gs.enabled": "true",
"gs.federation": "global",
"gs.trustedHosts": [
"***REMOVED SENSITIVE VALUE***"
],
"gss.discovery.manual.mapping.file": "\/var\/www\/html\/mappingfile.json",
"gss.discovery.manual.mapping.parameter": "urn:oid:1.3.6.1.4.1.5923.1.1.1.6",
"gss.discovery.manual.mapping.regex": true,
"gss.jwt.key": "***REMOVED SENSITIVE VALUE***",
"gss.master.admin": [
"admin",
"***REMOVED SENSITIVE VALUE***",
"***REMOVED SENSITIVE VALUE***",
"***REMOVED SENSITIVE VALUE***",
"***REMOVED SENSITIVE VALUE***"
],
"gss.master.url": "***REMOVED SENSITIVE VALUE***",
"gss.mode": "slave",
"gss.user.discovery.module": "\\OCA\\GlobalSiteSelector\\UserDiscoveryModules\\ManualUserMapping",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"log_type": "file",
"loglevel": 0,
"lookup_server": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_sendmailmode": "smtp",
"mail_smtpauth": 1,
"mail_smtpauthtype": "LOGIN",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpsecure": "tls",
"mail_template_class": "OCA\\DriveEmailTemplate\\EMailTemplate",
"mysql.utf8mb4": true,
"overwritehost": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"templatedirectory": "",
"skeletondirectory": "",
"twofactor_enforced": "true",
"twofactor_enforced_groups": [
"admin",
"***REMOVED SENSITIVE VALUE***"
],
"twofactor_enforced_excluded_groups": [],
"version": "21.0.9.2",
"app_install_overwrite": [
"globalsiteselector"
]
}
}
Bug description
When configuring max_execution_time and max_input_time in php.ini the new settings will not take and settings/admin/serverinfo will forever show 3600 no matter what you set it to. This is not the case with other settings such as max_file_size.
I am pretty sure that the problem is these two lines of code where these two variables are hard coded to 3600:
server/lib/base.php
Lines 634 to 635 in 135bdb3
Changing the hard coded value will make the web interface update to the value you set, indicating that indeed Nextcloud is using the hard coded value rather than the value the administrator has configured in php.ini.
Steps to reproduce
Expected behavior
Settings are honored by Nextcloud, and reported in settings/admin/serverinfo
Installation method
Other
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
{ "system": { "memcache.local": "\\OC\\Memcache\\APCu", "appstoreenabled": false, "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/custom_apps", "url": "\/custom_apps", "writable": true } ], "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "password": "***REMOVED SENSITIVE VALUE***", "port": 6379 }, "forcessl": true, "overwriteprotocol": "https", "objectstore": { "class": "\\OC\\Files\\ObjectStore\\S3", "arguments": { "bucket": "***REMOVED SENSITIVE VALUE***", "key": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "region": "us-east-1", "hostname": "***REMOVED SENSITIVE VALUE***", "port": "", "objectPrefix": "urn:oid:", "autocreate": false, "use_ssl": true, "use_path_style": true, "legacy_auth": false } }, "csrf.disabled": true, "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "***REMOVED SENSITIVE VALUE***", "localhost", "***REMOVED SENSITIVE VALUE***", "***REMOVED SENSITIVE VALUE***", "***REMOVED SENSITIVE VALUE***" ], "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "config_is_read_only": true, "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbname": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "dbport": "3306", "dbtableprefix": "oc_", "dbtype": "mysql", "dbuser": "***REMOVED SENSITIVE VALUE***", "gs.enabled": "true", "gs.federation": "global", "gs.trustedHosts": [ "***REMOVED SENSITIVE VALUE***" ], "gss.discovery.manual.mapping.file": "\/var\/www\/html\/mappingfile.json", "gss.discovery.manual.mapping.parameter": "urn:oid:1.3.6.1.4.1.5923.1.1.1.6", "gss.discovery.manual.mapping.regex": true, "gss.jwt.key": "***REMOVED SENSITIVE VALUE***", "gss.master.admin": [ "admin", "***REMOVED SENSITIVE VALUE***", "***REMOVED SENSITIVE VALUE***", "***REMOVED SENSITIVE VALUE***", "***REMOVED SENSITIVE VALUE***" ], "gss.master.url": "***REMOVED SENSITIVE VALUE***", "gss.mode": "slave", "gss.user.discovery.module": "\\OCA\\GlobalSiteSelector\\UserDiscoveryModules\\ManualUserMapping", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "log_type": "file", "loglevel": 0, "lookup_server": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_sendmailmode": "smtp", "mail_smtpauth": 1, "mail_smtpauthtype": "LOGIN", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "mail_smtpsecure": "tls", "mail_template_class": "OCA\\DriveEmailTemplate\\EMailTemplate", "mysql.utf8mb4": true, "overwritehost": "***REMOVED SENSITIVE VALUE***", "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***", "templatedirectory": "", "skeletondirectory": "", "twofactor_enforced": "true", "twofactor_enforced_groups": [ "admin", "***REMOVED SENSITIVE VALUE***" ], "twofactor_enforced_excluded_groups": [], "version": "21.0.9.2", "app_install_overwrite": [ "globalsiteselector" ] } }List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response