Hi,
How can I remove the limitation of the nextcloud so I can upload bigger files?
Thanks,
Hi,
How can I remove the limitation of the nextcloud so I can upload bigger files?
Thanks,
Fixed,
This limitation only existed because I created a new folder to host my nextcloud service.
The solution was to copy the template under /etc/httpd/conf.d
Thanks,
fun, not sure it is the good way. If you look to
[root@NS7DEV2 ~]# config show php
php=configuration
DateTimezone=UTC
ExposePhp=
MaxExecutionTime=
MemoryLimit=
PostMaxSize=
ShortOpenTag=
UploadMaxFilesize=
you can see that we rewrite the php limit to /etc/php.d/nethserver.ini
if you want to set a limit, do
config setprop php UploadMaxFilesize 1000
signal-event nethserver-php-update
I planned to work on nethserver-phpsettings for NS7
Hi @stephdl,
Thanks for replying,
One would think that if I leave this db command unset, it would leave the php settings with no limits, correct?
In my case I created a new folder under /var/www/nextcloud (not /var/www/html).
I also corrected the templates created for the nextcloud contrib pointing to the new path.
I tested yesterday uploading a 4.5G file and it didn’t work
Best regards,
If you read
[root@NS7DEV2 ~]# cat /etc/e-smith/templates/etc//php.d/nethserver.ini/10base
;
; 10base
;
short_open_tag = { $php{ShortOpenTag} || "Off" }
expose_php = { $php{ExposePhp} || "On" }
max_execution_time = { $php{MaxExecutionTime} || "0" }
memory_limit = { $MemoryLimit = $php{MemoryLimit} || "128"; }M
post_max_size = { $PostMaxSize = $php{PostMaxSize} || "8"; }M
upload_max_filesize = { $UploadMaxFilesize = $php{UploadMaxFilesize} || "2"; }M {
# Check memory limits consistency. Must be true the relation
# UploadMaxFilesize < PostMaxSize < MemoryLimit
# See http://php.net/manual/en/ini.list.php
if($UploadMaxFilesize >= $PostMaxSize) {
warn "php.ini: UploadMaxFilesize must be less than PostMaxSize. See http://php.net/manual/en/ini.list.php\n";
}
if($PostMaxSize >= $MemoryLimit) {
warn "php.ini: PostMaxSize must be less than MemoryLimit. See http://php.net/manual/en/ini.list.php\n";
}
'';
}
date.timezone = "{ $php{DateTimezone} || 'UTC' }"
you will see that you set limits
You can choose also the .htaccess way
https://docs.nextcloud.com/server/9/admin_manual/configuration_files/big_file_upload_configuration.html#configuring-your-web-server
Happy to see you still on a battlefield
Updated the settings and restarted apache, but I am still running into the Limit.
install nethserver-php-scl and you will be able to change the php settings
Thank you, I will give that a try.
Walter, did you resolve?
I have edited this
But still on nextcloud reads defaults
How do i increase the max upload limit?
Also, can i increase the memory limit on nextcloud sisnce i have more than 16 GIG RAM on the server
add custome options to /opt/rh/rh-php73/php-fpm.d/000-nextcloud.conf
you need to restart rh-php73-php-fpm
after
and set what?
Si there no way to edit that php limit for the entire Nethserver?
Please read about php-fpm, you have to understand before to do something
In short: no. A common Nethserver installation will have multiple versions of PHP, each doing different things. There’s no one place to edit settings for all of them. But the PHP “max upload limit” isn’t keeping you from uploading files of any size to Nextcloud–I just uploaded a 8 GB file to a stock, unaltered installation of Nextcloud on a clean Neth 7.7 server.