Maximum Execution time exceeded on Large image upload on C5 5.7.5.2

Permalink
After updating site to 5.7.5.2, Whenever I upload large image file it shows error
"Maximum execution time of 30 seconds exceeded".

When I close warning and refresh page, Image is uploaded, but it did not generate any thumbnails. Also in size column it shows 0.
I have attached screenshot.

PHP setting from Environment Information:

#PHP Setting
max_execution_time - 30
apc.max_file_size - 1M
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 12M
memcache.max_failover_attempts - 20
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
soap.wsdl_cache_limit - 5

1 Attachment

srjahir32
 
srjahir32 replied on at Permalink Reply
srjahir32
Is there anyone who can help me on this, please ?
VPenkov replied on at Permalink Reply
VPenkov
So what's your question?
Your web host limits scripts execution time like any other web host does. This is in order to kill heavy or "frozen" scripts which would otherwise overload the server.

You should ask your web host to increase that for your account. Or check if they allow custom php.ini file or using php_value inside .htaccess

If they allow a custom php.ini file, then you should be able to create one in your public_html directory and add this:
max_execution_time = 60
max_input_time = 60


If they allow php_value in .htaccess, you can add this to it:
php_value max_execution_time 600
php_value max_input_time 600
Try this; if you get an error 500, then you're not allowed to do it.

Finally, if none of this works, ask your web host about increasing these values.