httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graeme Fowler <>
Subject Re: [users@httpd] Flock issue? Further debug help needed
Date Tue, 26 Feb 2008 15:18:22 GMT
On Tue, 2008-02-26 at 15:38 +0100, Rudy Gevaert wrote:> 
> > Can you figure out what file this is pointing at?
> It is a php session file.

You must not use flock() over NFS, since it just doesn't work. the PHP
docs say this clearly:


flock() will not work on NFS and many other networked file systems.
Check your operating system documentation for more details."

You should, ideally, use fcntl() instead since in your PHP scripts since
that does offer locking over NFS. Or use a database. Or memcache, or
some other distributed system that doesn't require file locking.

might help.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message