i need to increase the UploadMaxFile Size
OK
i have issued the following commands
# db configuration setprop php71 MemoryLimit 256M
# db configuration setprop php71 PostMaxSize 64M
# db configuration setprop php71 UploadMaxFilesize 64M
# signal-event php-update
64M MaxFileSize seems a bit excessive but anyway.... your server.
i did Add this to /etc/e-smith/templates-custom/opt/remi/php71/root/etc/php.ini/20ResourceLimits
upload_max_filesize = {
my $iv = $php71{UploadMaxFilesize} || "";
$OUT .= "$iv";
}
Errrrrr why?
Have you checked the commands?
then i issued the command:
config setprop php71 UploadMaxFilesize
signal-event php-update
Ahhh - yes you did.
So you know a key exists, forgot that it might actually have a setting in a template, so created a NEW setting in the template, reused an existing variable in the template (my $iv - not impossible, but may cause unexpected issues in different scenarios - read some more on perl to see what you actually did) AND then for good measure deleted the actual key value.
You knew there was a key so why didn't you check if it was used???
grep UploadMaxFile /etc/e-smith/templates/opt/remi/php71/root/etc/php.ini/*
/etc/e-smith/templates/opt/remi/php71/root/etc/php.ini/60FileUploads: my $mf = $php71{UploadMaxFilesize} || "10M";
Surprise surprise...... already there.
So after that failed, did you actually look at php.ini too see what had happened?
grep -ir Upload /etc/opt/remi/php71/php.ini
file_uploads = On
upload_max_filesize = 10M
; added by stephdl see $php71MaxFileUpload
max_file_upload = 20
So all we actually needed to do was:
db configuration setprop php71 UploadMaxFilesize 64M
signal-event php-update
And then check php.ini for the values. Simples.
Sorry - but having a long day and had a sense of humour failure hours ago.
You really MUST read more, and think before you act. Learn to use tools like cat and grep to search for stuff in templates. Be more logical in your work.
If a key is stated on the wiki there is a good chance it is used somewhere. Don't ignore that. Go and look for it. See how it is used. (occasionally you may even find an undocumented one)
PS: i am trying to create the coreBos Wiki however on my profile it says " Approval Pending "
I'll ask JPP to look at it.