Dev on local - vagrant - WP_MEMORY_LIMIT in wp-config.php

Hi All,

I am using trellis with basic setup (no modification).

Adding WP_MEMORY_LIMIT, WP_DEBUG, WP_DEBUG_DISPLAY, DISABLE_WP_CRON, etc or whatever constant I wanted is resulting in the following warning message. (or similar ones)
( ! ) Notice: Constant WP_MEMORY_LIMIT already defined in /srv/www/ on line 13

Any documents that describes about how I can handle those kind of constants or env variables with yaml files or php files directly from site(bedrock) folder?

Thanks in advance

It looks like you’ve modified your Bedrock installation, though.

You should never modify web/wp-config.php, it should look like this:

To answer your questions:

1 Like

There’s some existing threads on this you can search too: