{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/17174","labels_url":"https://api.github.com/repos/owncloud/core/issues/17174/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/17174/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/17174/events","html_url":"https://github.com/owncloud/core/issues/17174","id":90972652,"number":17174,"title":"Packaged default settings in htaccess and user.ini confusing","user":{"login":"Xenopathic","id":2016878,"avatar_url":"https://avatars.githubusercontent.com/u/2016878?v=3","gravatar_id":"","url":"https://api.github.com/users/Xenopathic","html_url":"https://github.com/Xenopathic","followers_url":"https://api.github.com/users/Xenopathic/followers","following_url":"https://api.github.com/users/Xenopathic/following{/other_user}","gists_url":"https://api.github.com/users/Xenopathic/gists{/gist_id}","starred_url":"https://api.github.com/users/Xenopathic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xenopathic/subscriptions","organizations_url":"https://api.github.com/users/Xenopathic/orgs","repos_url":"https://api.github.com/users/Xenopathic/repos","events_url":"https://api.github.com/users/Xenopathic/events{/privacy}","received_events_url":"https://api.github.com/users/Xenopathic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-25T13:58:20Z","updated_at":"2015-06-26T11:56:24Z","closed_at":null,"body":"Imagine these scenarios:\r\n\r\n* Alice, with moderate knowledge of Apache and PHP, wants to install ownCloud. She installs the tarball/distribution package, configures as necessary in Apache, and knows that large files will be uploaded so sets `upload_max_filesize` and `post_max_size` in `php.ini`. However, she still gets 'Upload (max. 513MB)', due to the `.htaccess` file.\r\n\r\n* Bob, with advanced knowledge of nginx but moderate knowledge of PHP (FPM), wants to install ownCloud. Ditto as above, and he gets the same 513MB limit due to `.user.ini`. Unlike `.htaccess` however, this is less known about. (PS @carlaschroder the [doc on large uploads](https://doc.owncloud.org/server/8.0/admin_manual/configuration_files/big_file_upload_configuration.html) only mentions `php.ini`, with only an (unrelated) footnote even acknowledging the presence of `.user.ini`)\r\n\r\nThe problem isn't just with the max upload size. A `memory_limit` directive exists in both `.htaccess` and `.user.ini`, set to 512MB. This is almost guaranteed to be wrong - most systems will have it set way higher, and embedded devices are lucky to have 256MB.\r\n\r\nMy point is, we shouldn't be setting these configuration parameters, which override the system php.ini parameters, unless the admin has specifically asked for that in the web interface (we used to have a selector for the upload size - I couldn't find it in a quick search though). We should not package any default settings for the upload size or memory limit.\r\n\r\nNote, I'm not saying admins never read the documentation (although they often don't), or that admins don't know what their software does, but rather that we should be sensible with packaged defaults.\r\n\r\nThoughts? cc @PVince81 @DeepDiver1975 @MorrisJobke @LukasReschke "},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/115655403","html_url":"https://github.com/owncloud/core/issues/17174#issuecomment-115655403","issue_url":"https://api.github.com/repos/owncloud/core/issues/17174","id":115655403,"user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T11:56:24Z","updated_at":"2015-06-26T11:56:24Z","body":"@Xenopathic - Maybe oC could ship with some profiles, S, M, L, but there is no way around manually setting those limits, either via the admin settings or by editing the files themselves. What's needed is top notch documentation."}}