How to increase execution time of a PHP, Wordpress, wpconfig, script custom code?

 if ( ! defined( 'WP_DEBUG' ) ) {

define( 'WP_DEBUG', false );

}


/* That's all, stop editing! Happy publishing. */


/** Absolute path to the WordPress directory. */

if ( ! defined( 'ABSPATH' ) ) {

define( 'ABSPATH', __DIR__ . '/' );

}

/** Sets up WordPress vars and included files. */

require_once ABSPATH . 'wp-settings.php';


set_time_limit(3000);

@ini_set( 'max_input_vars' , 4000 );

set_time_limit(5000);

define('PHP_MAX_INPUT_VARS', 5000);

@ini_set( 'upload_max_size' , '2000M' );

@ini_set( 'post_max_size', '5000M');

@ini_set( 'memory_limit', '1500M' );

#Added by HostingRaja Security Team, Please do not remove

define('DISALLOW_FILE_EDIT', true);


Place the following in the top of your .htaccess file:

1
php_value max_execution_time 5000

Place the following in the top of your php.ini file:

1
max_execution_time = 5000

PHPMyAdmin max upload size



Or you can put these in .htaccess:

1
php_value upload_max_filesize 1000M php_value post_max_size 1000M

Put these in php.ini

1
post_max_size = 10240M 
upload_max_filesize = 10240M 
max_execution_time = 36000
max_input_time = 36000 
memory_limit = 10240M 



Comments

Popular posts from this blog

Get Post Data From Simple Post custom shortcode

Top 20 Beautiful Pen For Writing

Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php on line 199