Page 1 of 1

Increasing max file size uploads in PHP site

Posted: Thu Oct 09, 2014 11:58 am
by spentch
I have recently upgraded my web site that uses PHP/SQL (a collaboration site used primarily for file storage and transfer to other clients) and am using the .user.ini file to increase the file upload size that is located in the root directory.
Using the following commands:
upload_max_filesize = 1500M
post_max_size = 1500M
upload_limit = 1500M
memory_limit = 64M
max_execution_time = 600
client_max_body_size = 1500M
After ugrading the site the file upload size has now lowered to 15M. I have heard that restarting the server can work but am not sure if there are other options (since this is a multiple user machine I assume other accounts would be effected). Also, I have a wordpress site also in my account and not sure if that is causing problems with the account.
Any help would be greatly appreciated,
Steve

Re: Increasing max file size uploads in PHP site

Posted: Mon Oct 13, 2014 11:59 am
by joemuller
Steve,

Looking at the phpinfo() output for one of your sites, it looks like you're attempting to set values higher than the master config on the server. The current upload size limit is 50M and execution time is at 30sec.

If you're planning on handling uploads near 1500M, chances are you'll go over your quota very quickly. (See https://members.sonic.net/account/resou ... ical_disk/)

As for the wordpress install, it may have its own .htaccess files - these shouldn't cause problems with the settings you're including in the .user.ini, but as always, double-check with phpinfo() to see which value is being set.