A very simple fix detailing how to enhance the speed of WordPress on Godaddy Shared Hosting, Virtual Private Server (VPS) and other plans regardless of your service or provider.

This will probably be my final Godaddy article as I’ve now switched absolutely everything over to a VPS at Media Temple. As a result, I would just like to share what is probably the easiest and simplest way to accomplish a faster WordPress website.

 

The Process

Once your WordPress is installed:

  • Open your wp-config.php file in your WordPress root.
  • Add the following line:
    define( ‘WP_MEMORY_LIMIT’, ’64M’ );
  • Save the file

 

That’s basically it. Feel free to change ’64M’ to any reasonable size you want. It’s highly unlikely you’ll need to go above ’98M’.

 

How It Works

The wp_memory_limit function allows you to set the default memory limit defined by PHP. It is typically used to cure the “Allowed memory size of xxxxxx bytes exhausted” message.

By default WordPress will attempt to increase the PHP memory limit to 40MB but nothing larger than that. As you add more plugins / functionality to your WordPress website, this allocated size becomes insufficient.

 

A Few More Performance Tips

There are many other ways to accomplish a faster WordPress install. Some of which include:



View More Tutorials

See more posts on tutorials.

Wordpress, PHP, JavaScript, jQuery, CSS, HTML, MYSQL and more!

Categorised As:Tutorials, Web Design
COMMENTS
  • Benji Mellish

    Try changing the code to ‘define (‘wp_memory_limit’, ’64M’);’