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
1 | php_value upload_max_filesize 1000M
php_value post_max_size 1000M |
Put these in php.ini
1 | |
Comments
Post a Comment