Install eAccelerator 0.9.5-beta2 error

bigboy

Verified User
Joined
Nov 25, 2005
Messages
231
Location
USA
When restart apache error FreeBSD5.4 php4.4.2

# With Zend

vi /usr/local/Zend/etc/php.ini

Search for
;Directory in which the loadable extensions (modules) reside.

extension_dir = "/usr/local/src/eaccelerator-0.9.5/modules/"

# and change the dir according to what you get after make install, or you can use locate eaccelerator.so to check the directory

Search for ;Windows Extensions, if you don't know how, press Ctrl+W and add...

extension="/usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"


Save and Exit

mars# /usr/local/etc/rc.d/httpd start
Starting httpd: [ OK ]
mars# shmget() failed: Cannot allocate memory
Failed to start up concurrent users module!



mars# PHP Warning: [eAccelerator] Can not create shared memory area in Unknown on line 0
PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0
 
Last edited:
Back
Top