PHP 5.5 and ZendOptimizer

NiteWave

Administrator
#2
my test result is different with you, I built lsphp-5.5.1 with only "--with-litespeed" option. by default, opcache.so is built --- refer http://www.php.net/manual/en/opcache.installation.php

then in php.ini, add one line:
zend_extension=/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20121212/opcache.so

however opcache not show up in phpinfo() at all. in stderr.log:
2013-08-01 10:53:06.898 [STDERR] Failed loading /usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20121212/opcache.so: /usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20121212/opcache.so: cannot restore segment prot after reloc: Permission denied

after search in google, I got a workaround for it:
# setenforce 0
# chcon -c -v -R -u system_u -r object_r -t textrel_shlib_t
/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20121212/opcache.so

then "Zend OPcache" show up in phpinfo() page:
Opcode Caching Up and Running
Optimization Enabled
Startup OK
Shared memory model mmap
...

see if it helps for you. I'm still testing it.
 
#3
I have 500 errors:
This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'.


Any idea how to solve it?
Thanks.
 
Top