[phpa] Error with 1.2 : Unable to get shm sems - Invalid argument
- From: "Ronan PAUL" <ronanpaul@xxxxxxxxxxx>
- To: phpa@xxxxxxxxxxxxx
- Date: Tue, 20 Nov 2001 18:57:21 +0100
Hi Nick
I upgraded to version 1.2 (linux RedHat 6.2, PHP 4.0.6) and changed the
php.ini (with default values).
I can see that phpa is loaded in the phpinfo page, but there are errors in
the Apache error_log:
[Tue Nov 20 20:40:19 2001] [notice] PHPA starting
[Tue Nov 20 20:40:19 2001] [notice] Apache/1.3.12 (Unix) (Red Hat/Linux)
PHP/4.0.6 configured -- resuming normal operations
[Tue Nov 20 20:40:32 2001] [warn] shm - Unable to get shm sems - Invalid
argument
[Tue Nov 20 20:40:32 2001] [warn] shm cache disabled
Of course, no cached files are created.
Here is an extract of my php.ini
zend_extension="/usr/local/Zend/lib/php_accelerator.so"
; Sets the shared memory cache size in megabytes.
; Integer values only. Defaults to 8MB.
phpa.shm_size = 8
; Sets the shared memory key. Maybe specific in hex notation as below or as
; an integer.
; Defaults to 0xc0deb00
phpa.shm_key = 0xc0deb00
; Set the file cache directory. Must be an absolute path.
; Defaults to /tmp.
phpa.cache_dir = /tmp
; Enable some shared memory cache logging
; Defaults to 'off'
phpa.shm_logging = on
; Set the interval between checks of the shared memory cache for
; rebalancing.
; A purely numeric interval is in seconds, otherwise append one of 's', 'm',
; 'h', 'd' to specify a period in seconds, minutes, hours or days.
; e.g 10m is ten minutes, 3h is three hours.
; Defaults to 5 minutes
phpa.shm_stats_check_period = 5m
; Enable or disable the Accelerator entirely. Defaults to 'on'.
phpa = off
; Set the time-to-live period for shared memory cache entries.
; Specify a period as a number followed by 's', 'm', 'h', 'd' to denote
; seconds, minutes, hours, or days. E.g. 12h, 7d etc.
; Any shared memory cache entries that haven't been accessed within this
period
; will be flushed from the cache the next time cache stats are checked, (as
; determined by the setting of phpa.shm_stats_check_period).
; The period defaults to 12 hours and is probably suitable for most cases.
; Sites where the cache is undersized or where files become stale
; frequently (e.g. because files are replaced with new versions [as opposed
; to being overwritten] might want to reduce this.
; Sites where files might not be accessed for longer than 12 hours
; should increase the value.
phpa.shm_ttl = 12h
; Set the maximum number of Apache instances that may use the shared memory
; cache. The default value is 512. Any processes created after the limit
; is reached will still benefit from acceleration gained from reading the
; disc cache.
phpa.shm_max_processes = 512
Any idea on what is going on here ?
Ronan PAUL
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
------------------------------------------------------------------------
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
- Follow-Ups:
- [phpa] Re: Error with 1.2 : Unable to get shm sems - Invalid argument
- From: Paul Borgermans
Other related posts:
- » [phpa] Error with 1.2 : Unable to get shm sems - Invalid argument
- » [phpa] Re: Error with 1.2 : Unable to get shm sems - Invalid argument
- » [phpa] Re: Error with 1.2 : Unable to get shm sems - Invalid argument
- » [phpa] Re: Error with 1.2 : Unable to get shm sems - Invalid argument
- [phpa] Re: Error with 1.2 : Unable to get shm sems - Invalid argument
- From: Paul Borgermans