Koozali.org: home of the SME Server

Install php-eaccelerator on SME 8.1

Offline Paperguides

  • ****
  • 118
  • +0/-0
Install php-eaccelerator on SME 8.1
« on: March 09, 2014, 07:14:56 PM »
I cannot find any information on the installation of php accelerators on SME Version 8.  Is this possible, if so how.  Is it desirable/necessary?

Tony
...

Offline Xavier.A

  • ****
  • 104
  • +0/-0
Re: Install php-eaccelerator on SME 8.1
« Reply #1 on: March 10, 2014, 06:07:53 PM »
hi,

Is it desirable/necessary?
It depends of what you want to do and if you know what to do with it ! :lol:

First method : with epel repo
Code: [Select]
yum --enablerepo=epel info php-eaccelerator
yum --enablerepo=epel install php-eaccelerator
php -v

Second method : with sources from http://eaccelerator.net or https://github.com/eaccelerator/eaccelerator
you download, you unzip or untar and of course you read the README file !!!!!
Code: [Select]
phpize
./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config && make && make install

If you know what to do then you can tweak the "/etc/php.d/eaccelerator.ini" and "/proc/sys/kernel/shmmax"
else don't even try and go to read a good cook book on PHP code caching  or on compiling PHP code ! :lol:

--/--
“When the wise man points to the moon, the fool looks at the finger.”