PaulSpoerry.com

You found me… insights on technology, philosophy, Windows, hacking and more.
  • rss
  • Home
  • Archive
  • Links
  • Contact
  • Categories
  • Search
  • Snazzy Archives
  • About
  • Photos

Wordpress and memory limits

September 16, 2008

If you run Wordpress and ever receive a message such as “Allowed memory size of xxxxxx bytes exhausted” then you’re not alone. Resolving the error isn’t a big deal though. As of v2.5 the WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP.

This wasn’t in my config already, but simply adding it fixed the issue.

This setting increases PHP Memory only for WordPress, not other applications.

Please note, this setting may not work if your host does not allow for increasing the PHP memory limit–in that event, contact your host to increase the PHP memory limit. Also, note that many hosts set the PHP limit at 8MB.

Increase PHP Memory to 64MB
define(’WP_MEMORY_LIMIT’, ‘64M’);
Increase PHP Memory to 96MB
define(’WP_MEMORY_LIMIT’, ‘96M’);

Reblog this post [with Zemanta]
Comments
No Comments »
Categories
Code, Wordpress
Tags
FAQs Help and Tutorials, Laconica, languages, memory, MySQL, php, Programming, Wordpress
Comments rss Comments rss
Trackback Trackback

Google Search

Tag Cloud

ajax amazon barack obama bittorrent blog facebook firefox Gadgets game Gmail google Google Chrome HTC HTC Touch humor john mccain launch Linux menu search microsoft microsoft windows Mozilla Firefox open source operating system Politics Religion Ron Paul sprint Sprint Touch start menu tabs target united states user interface video Vista vista tweak Vista Tweaks wikipedia Windows Windows Mobile windows vista windows xp Wordpress youtube

Onlywire

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox