Should I block 9000 port when I using php-fpm?
I want to know that when I open a port 9000 and run php-fpm, can the attacker execute specific file by request my server using port number 9000.
Should I block 9000 port when I using php-fpm?
I want to know that when I open a port 9000 and run php-fpm, can the attacker execute specific file by request my server using port number 9000.
You can conf it with
listen = 127.0.0.1:9000
to only allow it been accessed from localhost
And check it
$ netstat -tlnp | grep 9000
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN -
I changed the 9000 PHP-FPM port because they put me a malware because of the default port. So it's better you change the 9000 port to another for PHP-FPM
© 2022 - 2024 — McMap. All rights reserved.