/tmp & /var/tmp usage warnings during large file upload
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.
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
Any suggestions would be very helpful so users can upload a 15GB file.
- Mike
| Used: | 3.33 GB |
| Available: | 289.18 MB |
| Total: | 3.81 GB |
| Device | Size | Used | Available | Percent Used | Mount Point | |
|
|
/dev/loop0 | 3.9G | 9.6M | 3.7G | 1% | /tmp |
|
|
/dev/md126 | 11T | 4.3T | 6.1T | 42% | /mnt/backup |
|
|
/dev/md127 | 11T | 404G | 9.9T | 4% | /home |
|
|
/dev/root | 219G | 12G | 197G | 6% | / |
|
|
/dev/sda1 | 510M | 3.6M | 507M | 1% | /boot/efi |
-
I'd suggest to use PHP's upload_tmp_dir. 0 -
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! 0 -
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!
Definitely easier and better practice as well. Keep in mind the following from PHP PHP: Description of core php.ini directives - Manual0 -
Thank you 0
Please sign in to leave a comment.
Comments
4 comments