Koozali.org: home of the SME Server

eAccelerator Enable

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
eAccelerator Enable
« on: November 27, 2009, 03:08:48 AM »
Hi all
Proably a basic error on my part but i have installed Sleepys eaccelerator but i cant seem to get it to work. On an old server i installed an older version that had a server manager panel. The new one does not and it says its enabled for all ibays etc. But in my case it isnt.

I presume i have to enable it but i cant for the life of me find the command.
Thanks

James

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: eAccelerator Enable
« Reply #1 on: April 30, 2010, 06:56:39 PM »
Still trying to find a way to use this.
I am running various php things in an ibay and id like to speed them up as much as possible.
I assume i need something like eaccelerator but i may be barking up the wrong tree.

Any suggestions to eek a bit more speed of php would be greatly appriciated.

James

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: eAccelerator Enable
« Reply #2 on: April 30, 2010, 08:56:57 PM »
Could you please explain what's going on?

I've just installed last eaccelerator contrib and, apart an issue with the french translation of web panels, I see it enabled:

Code: [Select]
[root@smeserver ~]# grep eaccelerator /etc/httpd/conf/httpd.conf
    php_admin_value eaccelerator.enable 1

[root@smeserver ~]# grep eaccelerator /etc/php.ini
extension=eaccelerator.so
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/var/cache/eaccelerator"
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"


edit eaccelerator is in smecontribs repo.. so no translation issue (i've setup an old one)
« Last Edit: April 30, 2010, 09:59:57 PM by Stefano »

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: eAccelerator Enable
« Reply #3 on: May 01, 2010, 01:48:15 PM »
might be me then
I was checking on smf forum (that is in an ibay) and it reported no compatible accelerator found.
However putting on all levels of cache smf runs fine and faster.

I have another question though (sorry)
Directive Local                            Value                            Master Value
eaccelerator.allowed_admin_path   no value                        no value
eaccelerator.cache_dir                 /var/cache/eaccelerator  /var/cache/eaccelerator
eaccelerator.check_mtime               1                               1
eaccelerator.compress                    1                               1
eaccelerator.compress_level            9                                9
eaccelerator.debug                        0                                0
eaccelerator.enable                       1                                1
eaccelerator.filter                          no value                      no value
eaccelerator.log_file                      no value                       no value
eaccelerator.name_space               no value                       no value
eaccelerator.optimizer                    1                               1
eaccelerator.shm_max                    0                               0
eaccelerator.shm_only                    0                               0
eaccelerator.shm_prune_period        0                               0
eaccelerator.shm_size                   16                               16
eaccelerator.shm_ttl                     0                                 0


==============================
eAccelerator support enabled
Version  0.9.5 
Caching Enabled  true 
Optimizer Enabled  true 
Memory Size  16,777,180 Bytes 
Memory Available  21,008 Bytes 
Memory Allocated  16,756,172 Bytes 
Cached Scripts  554 
Removed Scripts  0 
Cached Keys  0 

I assume the above means all allocated memory is being used for cache. I presume i need to set more then 16 meg? Or am i way off?

Many Thanks

James

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: eAccelerator Enable
« Reply #4 on: May 01, 2010, 01:53:51 PM »
I assume the above means all allocated memory is being used for cache. I presume i need to set more then 16 meg? Or am i way off?

I don't know, but I'm sure that google could help you to understand the meaning of those lines

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: eAccelerator Enable
« Reply #5 on: May 02, 2010, 11:17:01 PM »
yes thanks.
I should of done that first

as a follow up
i chnaged the allocated mem for eaccel to 0

i thien upped shared mem from 16 meg with a fragment.

Many thanks all seems ok now.

James