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

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.

Rebooted and restarted all services. Same issue. Not sure where to look for more info.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct