But doing that, I can no more set the Max upload size in the administration panel.
(textbox is now disable and I get the message :“Missing permissions to edit from here.”)
I guess it is just a file or folder permission issue.
I had to change pemissions to 764 for both the files .htaccess and .user.ini
Max Upload Size is then correctly saved to in .htaccess and .user.ini
But when I come back to the Administration/additional settings page, the Max Upload size displayed is still 2 MB, despite another value is stored in .htaccess and .user.ini ! (I wonder why 2 MB !?)
Maybe the values you entered are wrong in terms of a wrong format.
What exactly did you enter?
By the way: I only defined the value in the .user.ini and it works for me.
For security reasons I made changes to these files directly and removed write permission for group on these files. Yes, I can’t change the max upload size on the Web page, but this value doesn’t need to be changed often, so I don’t care
@Jason
You are right. It comes from the php.ini file
@Schmu
I entered 4G, and I get 4G in .htaccess and .user.ini
So I follow you recommendation: values directly entered in the files and write permissions removed.
Maybe it’s different on snap, but I can’t change the setting and my .htaccess file is 644. But owner is root (is that a snap root or actual root?), so I guess it still could be a problem with the webserver access. How do I find out more about how to solve this?
My .htaccess and .user.ini files were owned by root:http so I just changed their permissions from 644 to 664. I’ve considered submitting a request to the package maintainer for my distro to either change the ownership or permissions on those files.