/tmp & /var/tmp usage warnings during large file upload

JIKOmetrix

Well-Known Member
Apr 3, 2007
260
54
178
Hello,

I have a cpanel sever we use with owncloud. We are getting disk usage warnings when trying to upload large files in owncloud for the /tmp folder and /var/tmp.

Used:​
3.33 GB​
Available:​
289.18 MB​
Total:​
3.81 GB​

We do not see this with files smaller than the /tmp folder partition size. I have a user trying to upload a 15GB data file. That is a lot larger than 3.81GB /tmp or /var/tmp partition.

I'm thinking I need to move the /tmp & /var/tmp mount point a partition that is larger like the root. Here my partitions.

Current Disk Usage Information

DeviceSizeUsedAvailablePercent UsedMount Point
/dev/loop03.9G9.6M3.7G1%/tmp
/dev/md12611T4.3T6.1T42%/mnt/backup
/dev/md12711T404G9.9T4%/home
/dev/root219G12G197G6%/
/dev/sda1510M3.6M507M1%/boot/efi

Any suggestions would be very helpful so users can upload a 15GB file.

- Mike
 

quietFinn

Well-Known Member
Feb 4, 2006
2,037
549
493
Finland
cPanel Access Level
Root Administrator
I'd suggest to use PHP's upload_tmp_dir.
 

JIKOmetrix

Well-Known Member
Apr 3, 2007
260
54
178
Thank you. I'll try that. It will likely be an easier fix to edit the php.ini then to move the /tmp folder mount.

Thanks!
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston