You are not logged in.

#1 2014-07-22 06:14:22

x1site
Member
Registered: 2013-10-20
Posts: 60

[SOLVED]php, upload file more then 980mb

Hi!
I have a problem: I want to upload file about 2G. file uploads in /tmp while its size not more then ~980mb, after that he deleted and ~1.2G go to /dev/null
httpd was restart after I changed in php.ini
post_max_size = 30G
upload_max_filesize = 30G
error  UPLOAD_ERR_CANT_WRITE:    "Failed to write file to disk";
files less 900mb upload normally

Last edited by x1site (2014-07-22 09:53:56)


awesome + rofi

Offline

#2 2014-07-22 09:31:02

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED]php, upload file more then 980mb

Do you only have 2G of RAM by any chance?

The /tmp filesystem is mounted in RAM and limited to half the amount of total memory. If this is your issue then either change the download location to somewhere else or adjust your tmpfs settings.

Last edited by Slithery (2014-07-22 09:34:03)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2014-07-22 09:49:04

x1site
Member
Registered: 2013-10-20
Posts: 60

Re: [SOLVED]php, upload file more then 980mb

slithery wrote:

Do you only have 2G of RAM by any chance?

The /tmp filesystem is mounted in RAM and limited to half the amount of total memory. If this is your issue then either change the download location to somewhere else or adjust your tmpfs settings.

I have changed
upload_tmp_dir = /srv/temp
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/srv/temp

it helped me. thx

Last edited by x1site (2014-07-22 09:53:44)


awesome + rofi

Offline

Board footer

Powered by FluxBB