Head to your WordPress resource in Coolify, open the Terminal tab, select your WordPress container, and hit Connect. Then run cat >> /var/www/html/.htaccess, type in each line below one at a time, and press Ctrl+D when you’re done:
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
php_value max_input_vars 3000
Then verify output by running the following:
cat /var/www/html/.htaccess
Apache reads .htaccess on every request, so there’s no need to restart anything. You can verify the new values in WordPress under Tools → Site Health → Info → Server. Just be careful to only run the append command once – if you run it twice, the lines will be duplicated. Also note that these changes live inside the container, so if you rebuild from scratch they’ll be lost. For a permanent fix, consider mounting the .htaccess file as a persistent volume under your resource’s Storages settings in Coolify.