bad gateway error after IP swap
I have two linodes, both configured with LEMP stack and both serving wordpress sites. We'll call them 'old' and 'new'
However, when I swap IP addresses, sites on 'new' show a 502 error and the log indicates a failure to connect to php-fpm (7.2).
I haven't hard-coded any IP addresses in to the config and php-fpm should be listening on 127.0.0.1:9000
Must be something simple. What did I miss?
(Ubuntu 18.04 LTS)
2 Replies
mjones
Linode Staff
After swapping the IP addresses did you reboot your Linode or change the network configuration manually? If you didn't reboot your Linode, try restarting Nginx and PHP to see if that makes a difference:
service nginx restart
service php*-fpm restart
It may be that they're still listening on the old IP address.