From PHP , when I try to do
exec("php -f /path/to/file.php", $output, $rval);
it fails with the error message
<b>Fatal error</b>: xc_fcntl_lock failed errno:9 in <b>/path/to/file.php</b> on line <b>4</b><br />
If I change xcache.mmap_path to an existing file or directory, the error goes away. If xcache.mmap_path is set to /dev/zero or a non existent file, the error re-appears. Also, I am unable to replicate the error when running the command (php -f /path/to/file.php) directly via SSH.
Apache is running as user nobody. I tried XCache versions 3.0.1, 3.0.2, 3.0.3.