mehow
By:
mehow

Droplets for 50k wordpress

June 10, 2015 2.3k views
WordPress MySQL Ubuntu

Hi, i have a big wordpress site, almost 45k pages, i have a problem i get error "

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 32 bytes) in /srv/users/serverpilot/apps/wordpress/public/wp-includes/taxonomy.php on line 3825"

so my question what i need to setup to run this website on my droplet, right now i go from option 10 usd to 20 usd.

i setup a swap file for 4gb i need give more memory for php mysql or both ?

from wodpress plugin "Show WordPress Queries - Query Interface"

show me

SELECT poststatus, COUNT( * ) AS numposts
FROM wpposts
WHERE post
type = 'page'
GROUP BY post_status

is a "slow queries"

my memory limit in php.ini

memory_limit -1 256M

tnx for help.

3 Answers

To increase the memory you have available on your droplet, you can use the "resize" option on the panel.

just a hardware memory from 1gb to 2gb

  • So try increasing your PHP memory limit then, since that appears to be what the error is about?

[deleted]
  • I setup : memory_limit = 728M and i get that same error. Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes)

    Any small idea how to run this ? tnx.

    edit : right now i see this in option setting

    version 5.6.8
    user serverpilot:serverpilot
    maxexecutiontime 30
    memorylimit 256M
    Overridden at runtime from 728M
    upload
    maxfilesize 512M
    post
    maxsize 1G
    display
    errors 1
    logerrors 1
    error
    reporting 0

    memory_limit 256M
    Overridden at runtime from 728M

    maybe i need a change a general php memory from 256 ?

    tnx

Have another answer? Share your knowledge.