You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first, thank you for your time and energy for developing and maintaining FlockPhp
While installing Flockphp on a Ubuntu 24.04, i notice a name collision with an essential system utility.
On ubuntu, the util-linux package provides a native command called flock, used for managing advisory files lock in shell scripts and cron jobs (/usr/bin/flock) or maybe (/home/linuxbrew/.bin/flock).
Since Flock's installer places its internal components under /usr/libexec/flockphp/flock, it can lead to confusion or require manual workarounds (like creating alias or custom symlinks or adjust the $PATH) to prevent overriding or clashing whit the system's core file-locking utility.
It would be helpful if the installation script or documentation explicitly addressed this namespace collision, perhaps by ensuring that the primary command exposed to the user is cleanly aliased or symlinked as flockphp (or a similiar non-colliding name) in /usr/local/bin/, rather than risking a direct conflict with the system's native flock
Hi! We are aware of this and we approached this in two ways:
our flock command should get prioritized - so all our commands run as they should and only if we don't know the arguments, we pass it to the Linux flock command.
we have a "flk" alias for our command.
It's not a perfect solution and improvements are welcome.
On Ubuntu 24.04, the flock binary from util-linux sits in /usr/bin, so a PHP flock binary in PATH causes conflicts. I can explore a namespaced binary name or an install location that avoids the collision.
Activity
lukas-frey commentedon Nov 3, 2026
Hi! We are aware of this and we approached this in two ways:
It's not a perfect solution and improvements are welcome.
francojleiva commentedon Nov 7, 2026
I'll try a few workarounds and keep you posted. Thanks a lot
sharmis-tp commentedon Nov 18, 2026
On Ubuntu 24.04, the flock binary from util-linux sits in /usr/bin, so a PHP flock binary in PATH causes conflicts. I can explore a namespaced binary name or an install location that avoids the collision.