News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

What is eAccelerator?

Started by [Unknown], September 19, 2005, 01:35:51 AM

Previous topic - Next topic

Daniel15

madfiddler, eAccelerator needs to load before Zend does. Also, I believe it should be loaded as a normal extension, not a Zend extension (at least, that's what I needed to do. Loading it as a Zend extension crashed Apache whenever I tried).

My configuration looks a bit like:

extension="/usr/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so"
eaccelerator.shm_size="32"
;eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.cache_dir="/home/eaccelerator_cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="7200"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.allowed_admin_path="/home/[username removed]/public_html/eaccelerator"

;... More PHP config stuff here...


[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.0.1
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.0.1
zend_optimizer.version=3.0.1

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

madfiddler

hmm ok thanks.. Well, for me SMF is saying it's installed, so I guess I'm ok... ?

madfiddler

... apparently not. The entire server went down last night, and apparently it was eAccelerator that caused it. They've taken it off again.. Time for a ticket now I think cos the server is sooo slow.. page loads between 4-10 seconds, sometimes less, sometimes more... but only with sites using sql type software...

joh87swe

Hi,

I have problems with installing eAccelerator. It says that it's not installed. I'm not sure putting this code at the right place in php.ini
extension="ea/eaccelerator-0.9.5-beta1/modules/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"

Where do I have to put it?

joh87swe

I hav this in the log files:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ea/eaccelerator-0.9.5-beta1/modules/eaccelerator.so' - /usr/lib/php/modules/ea/eaccelerator-0.9.5-beta1/modules/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0

qtime

Where did you found the log files with the PHP warning error? Just installing eAccelerator again on my new server and forgot how I did that before...

joh87swe

It's in my CP, Service management and Log files, then I go to httpd and I open error log

joh87swe

Still need help with this error:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ea/eaccelerator-0.9.5-beta1/modules/eaccelerator.so' - /usr/lib/php/modules/ea/eaccelerator-0.9.5-beta1/modules/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0

青山 素子

joh87swe, does the file exist? If it does not, is it somewhere else?
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


qtime

maybe you can found it here:
/usr/local/src/eaccelerator-0.9.5/modules/eaccelerator.so

joh87swe

Yes it exist under ea/eaccelerator-0.9.5-beta1/modules/eaccelerator.so
I also think I placed the code at the wrong place in php.ini where do I have to paste it?
extension="ea/eaccelerator-0.9.5-beta1/modules/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"

qtime

I put it at the bottom of my php.ini, but you can do a search to zend

joh87swe

After the real End of php.ini ?

qtime

I did it on 1 server which is working... just on the end. but I am installing some new servers now and there is a line already with zend, just do a search.
if you type php -v (command line) do you see something like:
PHP 5.0.4 (cli) (built: Nov  8 2005 08:27:12)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
    with eAccelerator v0.9.5, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v3.1.16, Copyright (c) 2002-2006, by ionCube Ltd.

joh87swe

When I type php -v I get:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ea/eaccelerator-0.9.5-beta1/modules/eaccelerator.so' - /usr/lib/php/modules/ea/eaccelerator-0.9.5-beta1/modules/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.1.6 (cli) (built: Feb 23 2007 06:56:38)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

joh87swe

How do I know where my php is installed?

joh87swe

I fixed it!
From my phpinfo:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
    with eAccelerator v0.9.5-beta1, Copyright (c) 2004-2005 eAccelerator, by eAccelerator

eAccelerator
eAccelerator support enabled
Version  0.9.5-beta1 
Caching Enabled  true 
Optimizer Enabled  true 
Memory Size  33,554,392 Bytes 
Memory Available  33,550,628 Bytes 
Memory Allocated  3,764 Bytes 
Cached Scripts  2 
Removed Scripts  0 
Cached Keys  0 

Directive Local Value Master Value
eaccelerator.cache_dir /tmp/eaccelerator /tmp/eaccelerator
eaccelerator.check_mtime 1 1
eaccelerator.compress 1 1
eaccelerator.compress_level 9 9
eaccelerator.content shm_and_disk shm_and_disk
eaccelerator.debug 1 1
eaccelerator.enable 1 1
eaccelerator.filter no value no value
eaccelerator.keys shm_and_disk shm_and_disk
eaccelerator.log_file no value no value
eaccelerator.name_space no value no value
eaccelerator.optimizer 1 1
eaccelerator.sessions shm_and_disk shm_and_disk
eaccelerator.shm_max 0 0
eaccelerator.shm_only 0 0
eaccelerator.shm_prune_period 0 0
eaccelerator.shm_size 0 0
eaccelerator.shm_ttl 0 0

Does it look okey?

Ben_S

You will have to change the path to point to wherever it put the eaccelerator.so file.
Liverpool FC Forum with 14 million+ posts.

joh87swe

I don't understand? What do I have to do?

Ben_S

Sorry ignore me, hadn't noticed there was an extra page and you had sorted it.
Liverpool FC Forum with 14 million+ posts.

Advertisement: