Hello Gerry,
Thanks for following up!
The wp config files, php, nginx were all correct. But I did figure out the source of the problem. SELinux was blocking httpd services (nginx included) from connecting to databases. Once I granted the right, all went swimmingly well.
### View policies that affect webservers
getsebool -a | grep -E “^httpd_(unified|can_network_connect)?(_db)?\s”
httpd_can_network_connect –> off
httpd_can_network_connect_db –> off
httpd_unified –> off
### Allow these specific policies (-P flag to persist reboots)
sudo setsebool -P httpd_can_network_connect 1
sudo setsebool -P httpd_can_network_connect_db 1
sudo setsebool -P httpd_unified 1
### Validate the change is in effect
getsebool -a | grep -E “^httpd_(unified|can_network_connect)?(_db)?\s”
httpd_can_network_connect –> on
httpd_can_network_connect_db –> on
httpd_unified –> on
There may be better ways of configuring the policy, but this change was enough for me to continue with wp setup.
Thanks