Every time I want to change something with my configuration (such as the php_error_reporting level for example), I have to vagrant destroy and then vagrant up before the change is taken into account.
This takes quite a while, so I’m wondering if there’s any better way? Or is this a necessary hassle?
I tried that, but it doesn’t seem to change anything.
Also I don’t know if it’s related, but i get msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials errors when I run vagrant up --provision, even though the site seems to work fine.
Can you let us know what configuration changes you made? Or ideally post your config(s) so we can try and identify the problem or reproduce it?
Couple thoughts overall though:
The above replies are correct that any config changes you make need to be re-applied with vagrant provision which will run the Ansible provisioner.
Are any other settings not working/changing? I know you mentioned php_error_reporting but that setting in particular might depend on a few changes in your WP config as well.