Many issues that users encounter with for instance; The White Screen of Death, Setting up Demo Content Fails, empty page content, changing skin problems and other similar issues are all related to low Recommended PHP Configuration Limits for WordPress.
To resolve these issues, we recommend the following PHP values in your server’s php.ini file.
; Maximum execution time of each script, in seconds ; http://php.net/max-execution-time max_execution_time = 180; ; Maximum amount of time each script may spend parsing request data. It's a good ; idea to limit this time on productions servers in order to eliminate unexpectedly ; long running scripts. max_input_time = 60 ; Maximum input variable nesting level max_input_vars = 3000 ; Maximum amount of memory a script may consume memory_limit = 256M; ; Maximum size of POST data that PHP will accept. post_max_size = 64M ; Maximum allowed size for uploaded files. upload_max_filesize = 64M
Most hosts won’t grant you full access to modify the php.ini file because it affects the whole server and all the websites hosted on it. Please contact your host first to find out if they can adjust it for you.
You can modify these values by Editing wp-config.php. You can locate in the root of your WordPress file directory. Open the wp-config.php with a text editor program (Notepad or Notepad++) and add the following line of code after ‘define(‘WP_DEBUG’, false);
set_time_limit(300); @ini_set( 'max_input_time', '60'); @ini_set( 'max_input_vars', '3000'); define( 'WP_MEMORY_LIMIT', '256M' ); @ini_set( 'post_max_size', '13M'); @ini_set( 'upload_max_filesize', '64M' );