[phpa] Re: PHPAccelerator serious problem

Thanks for the info. For future reference, the support page suggests
email addresses rather than the list, and the FAQ has some comments
regarding this, although not in detail. Searching the list archive
would also turn up many discussions of this.

There are possibly a couple of reasons, but the most likely is a
misconfiguration, and this has been the case with previous reports.

The shm_user and shm_group directives *must* be set to the same
user/group that is running apache, otherwise it is quite likely that a
restart will fail. If you check the apache error log, you will probably
see messages related to operations not being allowed.  If upgrading
from a 1.2 release, it may not be sufficient to change the ini settings
and do a restart. Instead a stop should be issued and then a start.

So, please check the ini settings and the error log, and send me any
details to support@xxxxxxxxxx if you're unsure whether this as the
problem.

Given a correct configuration, the procedure to get you to a known
state should be:

* stop apache
* use 'ps' to check that there are no httpd processes running
* use 'kill' to stop them if there are and keep checking with ps until
they're gone
* use ipcs to see whether the shared memory and semaphores are removed.
There should be no entries with key 0x0c0deb00. If there are, use
'ipcrm' or 'phpa_cache_admin -D' to remove them.
* check with ipcs again that they're now gone
* restart apache
* use ipcs to check that the shm and sems with key 0x0c0deb00 have the
same ownership as the owner of all but one of the httpd processes,
(which will be the same as listed in httpd.conf and in your php.ini
setup for phpa)

Now things should be fine. Issue some requests and a graceful restart
for test purposes.

The other possibility is that phpa was interrupted by the restart when
it was doing something critical. Altohugh this is something that should
be changed in a later release, this is not known to cause problems as
such, whereas incorrect permissions will!

Hope that helps and let me known if you're still stuck.

Again, please send any emails off list if you need to discuss this
point further.

Cheers
nick



------------------------------------------------------------------------
  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: