Zend Optimizer+ Opcode Cache

Support/Development for PHP
Imaging
Forum Regular
Forum Regular
Posts: 346
Joined: Sat Sep 25, 2010 2:46 pm

Zend Optimizer+ Opcode Cache

Unread post by Imaging »

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.
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: Zend Optimizer+ Opcode Cache

Unread post by prupert »

+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:

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
Afterwards, do not forgot to load (and enable) the module.
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
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.
Lemonbit Internet Dedicated Server Management
Imaging
Forum Regular
Forum Regular
Posts: 346
Joined: Sat Sep 25, 2010 2:46 pm

Re: Zend Optimizer+ Opcode Cache

Unread post by Imaging »

Scott/Mike:

Any updates about the possibility of rpms?

Thanks.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Zend Optimizer+ Opcode Cache

Unread post by scott »

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
Imaging
Forum Regular
Forum Regular
Posts: 346
Joined: Sat Sep 25, 2010 2:46 pm

Re: Zend Optimizer+ Opcode Cache

Unread post by Imaging »

Great, thanks!

Seeing it on a CentOS 6 box but not a CentOS 5 one. Available for 5 as well?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Zend Optimizer+ Opcode Cache

Unread post by scott »

Took some tweaking, but yeah now theres an el5 build too.
Imaging
Forum Regular
Forum Regular
Posts: 346
Joined: Sat Sep 25, 2010 2:46 pm

Re: Zend Optimizer+ Opcode Cache

Unread post by Imaging »

Excellent, thanks!
Post Reply