After restart Nginx, nothing change. Iknow this issue is all about third party software. In order to keep on topic I ask about specific Trellis configuration. There is something I must to know about it?
Thanks a lot. This simple issue involves a lot of things: Vagrant boxes, Nginx and php, actually away of my knowledge.
You did re-provision (run server.yml) after editing those values I assume?
edit: oops read too quickly and I see that you edited those files directly on the server. Maybe you did that just to test it quickly but always update those values in the Trellis configs itself. You ideally never want to make manual changes like those straight on the server.
I did it but nothing changed. I put php_post_max_size: 40m inside group_vars/development/wordpress_sites.yml
inside specific site, between system_cron and env. Here is:
$ ansible-playbook -i hosts/development server.yml
PLAY [Determine Remote User] **************************************************
TASK: [remote-user | Determine whether to connect as root or admin_user] ******
ok: [127.0.0.1 -> 127.0.0.1]
TASK: [remote-user | Set remote user for each host] ***************************
ok: [127.0.0.1]
TASK: [remote-user | Announce which user was selected] ************************
ok: [127.0.0.1] => {
"msg": "Note: Ansible will attempt connections as user = aitor"
}
PLAY [WordPress Server - Install LEMP Stack with PHP 5.6 and MariaDB MySQL] ***
GATHERING FACTS ***************************************************************
fatal: [127.0.0.1] => SSH Error: ssh: connect to host 127.0.0.1 port 22: Connection refused
while connecting to 127.0.0.1:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.
TASK: [common | Validate Ansible version] *************************************
FATAL: no hosts matched or all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/aitor/server.retry
127.0.0.1 : ok=3 changed=0 unreachable=1 failed=0
Sorry, @swalkinshaw, a last question. When I try to do the same at production environment, there is no php.yml inside /group_vars/production. Should I create it?