Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Nginx can't communicate with PHP-FPM after running this #2

Open
C-Nedelcu opened this issue Aug 15, 2017 · 4 comments
Open

Nginx can't communicate with PHP-FPM after running this #2

C-Nedelcu opened this issue Aug 15, 2017 · 4 comments

Comments

@C-Nedelcu
Copy link

Hello,

So I ran your script on my web server (after reading the script's source code, of course). Unfortunately, after running it, the Nginx daemon could no longer communicate with PHP-FPM so it returned an error code (502 bad gateway).

I cleared the iptable rules and things went back to normal.

It's really weird, I'm wondering what went wrong here. Nginx and PHP-FPM are set up to communicate on port 9000, address 127.0.0.1. I could neither find 127.0.0.1 nor my server's IP address in the list of TOR IPs.

Attached is the output log, everything seems normal as far as I can tell. Do you have any idea what might have gone wrong?

I can't test again right now due to the 30 minute limitation of the source list, and also because I don't want to mess up with my server again.
torlog.txt

@jseidl
Copy link
Owner

jseidl commented Aug 15, 2017 via email

@C-Nedelcu
Copy link
Author

Hi,

Thanks for replying! Unfortunately this did not do the trick.
Still getting a 502 gateway error, which happens immediately after the script starts adding the first iptable rules.

could this have something to do with
REDIRECT_IP="10.1.1.112"

whats this IP and why does it come into play? should it be configured?

@jseidl
Copy link
Owner

jseidl commented Aug 16, 2017 via email

@C-Nedelcu
Copy link
Author

So any idea what might be the problem and how to fix it?
The idea behind your script seems perfect now if I could just figure out why it messes my servers...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants