This documentation is only valid for older versions of Wordfence. If you are using Wordfence 7 or later, please visit our new documentation.

Wordfence system requirements

From Wordfence Documentation
Revision as of 23:08, 12 November 2014 by Markm (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The following are the system requirements for running WordPress with Wordfence.

  • A Linux or other Unix type operating system. Windows is not currently supported although we have many reports of Wordfence working on IIS and other Windows web server platforms.
  • PHP version 5.1.0 or newer.
  • A MySQL database. Wordfence will work with MyISAM or the InnoDB storage engine set as your default engine. We don't specify type when creating our tables and will use your defaults.
  • A minimum of 64 megabytes of memory available for use by PHP. We recommend 128 megabytes for best operation. See notes on memory below.

Memory Requirements

We suggest a minimum of 64 megabytes of memory which needs to be available to PHP for you to run Wordfence. Our recommended memory for Wordfence is 128 megabytes.

If you receive an error that looks like the following, you have run out of memory:

Fatal error: Out of memory (allocated 33292288) (tried to allocate 616 bytes) in... [and then some filename] 

This is not a Wordfence bug. It means that your web server does not have enough memory to run WordPress, the plugins and theme you have installed along with Wordfence. Even if you see a Wordfence file mentioned in the above out-of-memory error, remember that WordPress has stored a lot of other data belonging to other plugins, your theme and core in memory. So while the error may mention Wordfence, it's likely that Wordfence was the straw that broke the camels back.

If you do not have enough memory to run Wordfence, please log a support call with your hosting provider asking them to upgrade your memory allowance.

Checking available memory

Knowing how much memory your hosting provider has allocated you can be quite challenging. We provide a basic test tool at the bottom of the Wordfence options page which allocates 80 megabytes of memory to test if you at least have that much. However it seems that some hosting providers vary the amount of memory you have, so this might not be reliable.

You can also check your system information by clicking the link at the bottom of your Wordfence options page to view your web server and PHP environment information. On some installations there may be text titled "memory_limit" which shows your memory limit as set in your PHP.ini file. However this is not present on many modern systems and it's also unreliable because it's possible to limit memory at the web server level and also the operating system level. So instead, if you see an out of memory error, we suggest you contact your site admin or hosting provider and work with them to determine:

  1. What your memory limit is.
  2. If you can upgrade it.