method one:
Editing php.ini
Found: max_execution_time = 30, this is the longest running each script, in seconds, amended as follows:
max_execution_time = 150
Found: max_input_time = 60, which is each script can consume time, in seconds, is revised as follows:
max_input_time = 300
Found: memory_limit = 128M, this is the largest consumer of memory to run the script, change the value according to your needs, here amended as follows:
memory_limit = 256M
Found: post_max_size = 8M, 8M submit a maximum data form, this is not to limit the size to upload a single file, but rather limit for the entire form submission data. To limit the scope to include all the contents of form submission example: when published postings, post title, content, attachments, etc. ... Here amended as follows:
post_max_size = 20M
Found: upload_max_filesize = 2M, the maximum permissible size of the file is revised as follows:
upload_max_filesize = 10M
Reference Links:
https://blog.csdn.net/u014103733/article/details/54755802
Method two:
using Apache Rewrite method, dynamic modification of the value memory_limit. First create a .htaccess file, save the file in the current directory to upload the program code is as follows:.
Php_value memory_limit 100M
php_value post_max_size 30M
php_value upload_max_filesize 30M
php_value max_execution_time 300
php_value max_input_tim 300
php_value display_errors the On
Reference Links: https://www.cnblogs.com/tmdsleep/p/9778936.html