Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 166
  • Last Modified:

Large file uploads from Web page to Mac server running Apache

I would like to set Apache and PHP  running on Mac server to accept upload file sizes up to 100meg.

Can anyone list the settings I would need in Apache and PHP?

 I've seen a lot of references to timeout problems, what value should the timeout be set for to ensure a 100 meg file is uploaded?

Thanks QueKay
0
QueKay
Asked:
QueKay
  • 2
1 Solution
 
halonxCommented:
In your php.ini file you'll want to modify the following settings:


; Maximum allowed size for uploaded files.
upload_max_filesize = 50M
 
; Maximum size of POST data that PHP will accept.
post_max_size = 50M

Open in new window

0
 
QueKayAuthor Commented:
Thank you halonx

Any ideas on if I need to alter the max_execution_time of the script?
0
 
yfastudCommented:
consider these factors in file php.ini since they're related to each other and even have formula to set them up properly but dont remember formula to post here

Find:
post_max_size = 8M
upload_max_filesize = 2M
max_execution_time = 30
max_input_time = 60
memory_limit = 8M

Change to:
post_max_size = 750M
upload_max_filesize = 750M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M
0
 
QueKayAuthor Commented:
Many thanks for all your help.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now