Resources · Port reference · port 9000
Port 9000 (MinIO and PHP-FPM): what it is and how to secure it
Port 9000 is used by MinIO, PHP-FPM and older Portainer. None of them should face the internet directly: PHP-FPM can be made to run code, and MinIO and Portainer hold data and control.
Check command
sudo ss -tlnp | grep ':9000 '
Copied.
Port 9000 has three common owners, and none of them should be public. MinIO's S3 API, PHP-FPM (in many Docker setups) and older Portainer installs all use it. Find out which one you have, then bind it to localhost or a private network.
What port 9000 is for
| Software | What is on 9000 |
|---|---|
| MinIO | The S3-compatible API. The web console is usually on 9001. |
| PHP-FPM | The FastCGI socket nginx sends PHP requests to. The official php:fpm Docker image listens on 9000. |
| Portainer | The plain HTTP interface in older setups. Current versions use 9443 with HTTPS. |
Why an open 9000 is dangerous
- PHP-FPM: FastCGI has no authentication. Anyone who can talk to it can ask it to run PHP files, and with crafted parameters, to run PHP code they supply. A public PHP-FPM port is remote code execution.
- MinIO: the API holds your buckets. Deployments that never set
MINIO_ROOT_USERandMINIO_ROOT_PASSWORDfall back to the well-knownminioadmindefault. - Portainer: it controls Docker, which means it controls the host.
Check yours
sudo ss -tlnp | grep -E ':(9000|9001|9443) '
docker ps --format '{{.Names}}\t{{.Ports}}' | grep -E '900[01]|9443'
The process name tells you which one it is.
Fix it
PHP-FPM: listen on a Unix socket or loopback. In the pool file (for example /etc/php/8.3/fpm/pool.d/www.conf):
listen = /run/php/php8.3-fpm.sock
; or
listen = 127.0.0.1:9000
In Docker, do not publish 9000 at all. nginx reaches PHP-FPM over the internal Docker network by service name (fastcgi_pass php:9000;).
MinIO: set strong MINIO_ROOT_USER and MINIO_ROOT_PASSWORD, publish 9000 and 9001 on 127.0.0.1 only, and serve the API through nginx with HTTPS if apps outside the server need it. Keep buckets private unless you meant them to be public.
Portainer: publish 9443 on 127.0.0.1 and reach it through an SSH tunnel or VPN:
ssh -L 9443:127.0.0.1:9443 you@your-server
Common mistakes
ports: ["9000:9000"]on the PHP-FPM service in docker-compose. Remove it.- Leaving the MinIO console on 9001 public after locking down 9000.
FAQ
Which one is on my port 9000? Run sudo ss -tlnp | grep ':9000 ' and read the process name.
How do I get warned? PortGate's Server Guard alerts when 9000, or any new port, opens on a public address, including Docker-published ports.