[phpa] SHM Permissions

  • From: "Nick Lindridge" <nick@xxxxxxxxxxxxxxxxxxxxx>
  • To: <solariz2@xxxxxxxxxxxxx>
  • Date: Mon, 6 May 2002 15:24:50 -0000 ()


> Hi Nick,
>
> i've installed the new version and it seems there are Problems.
> No files listed in the cached files list and the SHM isn't used.

This is likely to be because PHPA can't access the shared memory.

In this release, the shared memory is now created by the user who starts
apache. This is typically root, and so PHPA first runs as root and creates
the shared memory at that point. If your php.ini sets the shared memory
permissions to anything other than 666, then there is likely to be a problem
*unless* you use the new shm_user and shm_group settings. The problem is
because apache sets the user of children process to something other than
root, and they can't then access the shared memory unless they too have
write permission to the root-owned shared memory. This is all explained in
the release notes.

Let me know if you're still stuck.



------------------------------------------------------------------------
  www.php-accelerator.co.uk           Home of the free PHP Accelerator

To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe


Other related posts: