AVProgrammer
AVProgrammer

Reputation: 1350

FTP File upload timeout

My filemanaging script keeps timing out on files greater than ~4 MB.

I am on shared hosting but have access to the php.ini file (though editing it does not seem to make a difference).

The php.ini file has been updated to take 100M (the goal max upload size), but is still reading as 8M via:

ini_get('upload_max_filesize')

I have a php.ini file in the root directory of the site with these settings:

upload_max_filesize = 104857600
post_max_size = 124857600
max_input_time = 480
max_execution_time = 480
memory_limit = 144857600

My host (godaddy) says they cannot restart the server (shared) and I should not need to in the first place, just upload the ini file. However none of my attempts have been able to resolve the problem.

I using PHP FTP functions. I am connecting, and files < ~5 MB upload with no trouble, but any larger than that and the page sits there for a few minutes (8 maybe? max_execution_time is set to 8 minutes) before the page changes to the upload.php script with a white page. No error messages, nothing.

Any help?

Upvotes: 0

Views: 2425

Answers (2)

Galen
Galen

Reputation: 30180

you can check if your new ini has been loaded with phpinfo(). If not, then you have found your problem.

Upvotes: 1

k to the z
k to the z

Reputation: 3185

In my experience, I've only seen upload_max_filesize values of 10M format. Not 104857600 unlabeled if that makes sense. Also, I believe you do have to restart apache after you change the ini file.

Upvotes: 0

Related Questions