SGIS updates & advice

How to increase the memory limit on WordPress

Some WordPress themes and plugins require more PHP memory than the server default, especially while managing options in the admin area, so it’s necessary to up the allowed memory limited to allow these functions to work properly – an example of this is the JigoShop WordPress plugin which requires at least 64MB of PHP memory.

Traditionally this is achieved by updating or adding a php.ini file to file structure but WordPress has this ability built in. All WordPress needs to increase the PHP memory is a bit of code adding to the wp-config.php file.

  1. 1Access the hosting control panel

    You can’t edit the wp-config.php file from the WordPress admin area so you will first need to access your hosting control panel here Manage hosting

  2. 2Locate the wp-config.php file via File Manager

    The wp-config.php file is located in the main folder that WordPress sits in – so if WordPress is installed on yoursite.com/blog the wp-config.php file will be located in /public_html/blog/

    Screen Shot 2014-11-14 at 12.50.22

  3. 3Update the wp-config.php file

    Right click on the file and select Edit. The code needs to be added below the MySQL settings (line 35).

    /** Memory Limit */
    define('WP_MEMORY_LIMIT', '64M');
    

    N.B. Please take a backup of the file before editing to allow you to restore if errors are made.

  4. 4Save the changes

    Save the changes and the memory limit for your WordPress site will then be increased.

If you need further advice on how to do this please contact our support team.

Comments

Comments

Comments