I've built Apache, PHP and XCache by hand but am having problems getting XCache 3.0 to load. XCache 2.0.1 loads with no problem. This happened with PHP 5.4.7 so I upgraded to PHP 5.4.8 but have the same issue.
When I have the following line in my php.ini file:
extension = /usr/local/lib/php/extensions/no-debug-non-zts-20100525/xcache.so
I get the error message "/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xcache.so doesn't appear to be a valid Zend extension" and Apache will not start.
If I change this to:
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20100525/xcache.so
Apache starts, but the extension is not loaded. Here is the output of "php-cgi -v":
/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xcache.so doesn't appear to be a valid Zend extension
PHP 5.4.8 (cgi-fcgi) (built: Nov 2 2012 18:41:20)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd
If I compile version 2.0.1 it installs to the same location and works perfectly.
Any thoughts on what might be going wrong? I have tried this on two servers that have this issue. The other server is running PHP 5.4.8 and nginx.
Thanks.