Re: Flock issue? Further debug help needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:

"Warning 

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.

http://uk2.php.net/manual/en/function.dio-fcntl.php

might help.

Graeme


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux