Droplets for 50k wordpress

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 post_status, COUNT( * ) AS num_posts FROM wp_posts 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.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

just a hardware memory from 1gb to 2gb

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