Set wp_memory_limit up in Trellis

Trying to define( 'WP_MEMORY_LIMIT' , '128M' );

Doing:

# group_vars/development/wordpress_sites
musicasusual.es:
    wp_memory_limit: 128M

Then, vagrant up --provision

Memory remains at 40M. What is wrong?

You’ll need to define php_memory_limit in order for PHP to have the correct memory limit

1 Like

Sorry, I marked as solved too quickly. PHP memory limit seems to be right:

I only get wp_memory_limit: 128M hardcoding:

# bedrock/config/application.php
define('WP_MEMORY_LIMIT', '128M');

This config works:

If I try to set up with Trellis:

# group_vars/development/wordpress_sites
musicasusual.es:
        site_hosts:
          - canonical: musicasusual.test
        local_path: ../musicasusual
        wp_memory_limit: 128M

PHP limit is OK, but WP limit remais 40M:

42

Would be an error in the wordpress_sites.yml. Isn’t it?

Defining wp_memory_limit in your wordpress_sites.yml isn’t doing anything

You’ll still need to define WP_MEMORY_LIMIT in the Bedrock config

1 Like

Ok! Thank you

20chars

This topic was automatically closed after 42 days. New replies are no longer allowed.