Scott/Mike:
Is there an rpm available for the zend optimzer+ opcode cache for the current atomic PHP 5.4.x builds?
We're currently using APC but may want to try optimizer+ so was curious if it was available.
If not, could it be put on the list to be made available?
Thanks.
Zend Optimizer+ Opcode Cache
Re: Zend Optimizer+ Opcode Cache
+1 !
There are packages in EPEL for the stock EL PHP packages. But if you have a non-stock PHP installation (such as provided Atomic) you'll currently need to manually install via PECL:
Afterwards, do not forgot to load (and enable) the module.
Create a file "/etc/php.d/opcache.ini" with contents:
Also, do not forget to periodically check for updates of the Opcode extension on http://pecl.php.net/package/ZendOpcache.
If you want to have a clean system without any compilers you may now remove the previously installed requirements via yum.
There are packages in EPEL for the stock EL PHP packages. But if you have a non-stock PHP installation (such as provided Atomic) you'll currently need to manually install via PECL:
Code: Select all
# requirements
yum install php-pear php-devel gcc gcc-c++
pear channel-update pecl.php.net
# build through pecl
pecl install zendopcache-beta
Create a file "/etc/php.d/opcache.ini" with contents:
Code: Select all
; Installation through PECL by <name> <date> - <reference>
; Load Zend OPcache extension module
zend_extension=/usr/lib64/php/modules/opcache.so
; Determines if Zend OPCache is enabled
opcache.enable=1
If you want to have a clean system without any compilers you may now remove the previously installed requirements via yum.
Lemonbit Internet Dedicated Server Management
Re: Zend Optimizer+ Opcode Cache
Scott/Mike:
Any updates about the possibility of rpms?
Thanks.
Any updates about the possibility of rpms?
Thanks.
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Zend Optimizer+ Opcode Cache
Sure!
yum provides /usr/lib64/php/modules/opcache.so
php-pecl-zendopcache-7.0.3-1.el6.art.x86_64 : The Zend OPcache
Repo : atomic
Matched from:
Filename : /usr/lib64/php/modules/opcache.so
yum provides /usr/lib64/php/modules/opcache.so
php-pecl-zendopcache-7.0.3-1.el6.art.x86_64 : The Zend OPcache
Repo : atomic
Matched from:
Filename : /usr/lib64/php/modules/opcache.so
Re: Zend Optimizer+ Opcode Cache
Great, thanks!
Seeing it on a CentOS 6 box but not a CentOS 5 one. Available for 5 as well?
Seeing it on a CentOS 6 box but not a CentOS 5 one. Available for 5 as well?
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Zend Optimizer+ Opcode Cache
Took some tweaking, but yeah now theres an el5 build too.
Re: Zend Optimizer+ Opcode Cache
Excellent, thanks!