WordPress.org

Ready to get started?Download WordPress

Forums

max memory issue (4 posts)

  1. leisegang
    Member
    Posted 1 year ago #

    I have a multisite.

    in my PHP settings i have max memory set at 512 mb

    Fatal error: Allowed memory size of 268435456 bytes exhausted

    i get this all the time. and thats only 256mb ram. waht can i do to get this to work? i cannot have that error shoing to my users when they ie. change theme. post a post.

    i also have this in my wp-config.php:

    define('WP_MEMORY_LIMIT', '512M');

    i host on a cpanel server with cent os and 24gb ram.

  2. What plugins are you running?

    What brand of PHP are you using? (DSO, ModPHP, FastCGI...)

    (I got that error when I had Shell Fork protection turned on, but only when I ran things via command line)

  3. leisegang
    Member
    Posted 1 year ago #

    FCGI i sort of fixed it i think?

    define('WP_MEMORY_LIMIT', '1024M');
    define('WP_MAX_MEMORY_LIMIT', '1024M');

    the last line fixed it because all errors were in the admin.

  4. Ah. Yeah, I can see that :/

    FastCGI uses more memory than other PHPs.

Topic Closed

This topic has been closed to new replies.

About this Topic