Site icon Learn Web Development & Programming, Artificial Intelligence, WordPress, Shopify Articles

How can we resolve maximum allocation time exceeds error?

We can resolve these errors through php.ini file or through .htaccess file.

  1. From php.ini file, increase the max_execution_time =360 (or more according to need)
    and change memory_limit =128M (or more according to need)
  2. From php file, we can increase time by writing ini_set(‘max_execution_time’,360 ) at top of php page to increase the execution time.And to change memory_limit write ini_set(‘memory_limit ,128M )
  3. From .htaccess file, we can increase time and memory by:
<IfModule mod_php5>
php_value max_execution_time 3600
php_value memory_limit 128M
</IfModule>

 

Exit mobile version