You are not logged in.

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

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

[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)


I will be  grateful if you could show my grammar errors in the post

Offline

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

slithery
Member
Registered: 2013-12-01
Posts: 767

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)

Offline

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

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

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)


I will be  grateful if you could show my grammar errors in the post

Offline

Board footer

Powered by FluxBB