Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

just-pthai-it's avatar

Laravel horizon not work correctly on docker

I run Laravel app with others services on docker using docker compose. When I access into the docker container and run horizon manual, nothing happened. Horizon run normally but it threw an exception to my log file:

Call to undefined function Laravel\Horizon\posix_getppid()

Everthing works fine If I run Laravel app outside docker container. Does anyone know what exception I am facing? Thank you!

0 likes
1 reply
just-pthai-it's avatar
just-pthai-it
OP
Best Answer
Level 1

Ok turns out my docker image missing php81-posix package. Just install it and everything is ok.

Please or to participate in this conversation.