Setting PHP up to handle long execution times, large inputs and so on.

Setting PHP up to handle long execution times, large inputs and so on.

Last updated:

You'll want to change these settings to what you need them to be, I'll just give an suggestion based on my needs. (I currently need to use PHP to upload a 500MB xml file, parse it and add the parsed info to a MySQL database):

max_execution_time: 3600
max_input_time : 3600
memory_limit: 1024M
post_max_size: 2048M
file_uploads = On
upload_max_filesize: 2048M
default_socket_timeout = 3600

restart Apache

Dialogue & Discussion