In order to use Symfony framework, I put eaccelerator to ON in my php.ini like it's write on ApacheFriends, it works in my phpinfo(),.
However, when I launch the Symfony checking configuration script, it writes this : "A PHP accelerator is installed: FAILED"
I've observed this script and I've seen (eg : code) :
1) Script verifies if the value about eaccelerator in configuration file is ok
2) Script verifies if the following function exists : "eaccelerator_put"
- Code: Select all
$accelerator =
(function_exists('apc_store') && ini_get('apc.enabled'))
||
function_exists('eaccelerator_put') && ini_get('eaccelerator.enable')
||
function_exists('xcache_set')
;
For 1) I've tested by myself with following command line : /opt/lampp/bin/php -v => it seems ok.
- Code: Select all
PHP 5.2.5 (cli) (built: Jan 23 2008 14:13:03)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
For 2)
I've searched eaccelerator_put function with grep in /opt/lampp/ (eg : code) and I find 3 lines are ok.
- Code: Select all
Command :
grep -r "eaccelerator_put" *
Result :
a) Binary file lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so matches
b) Binary file lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so matches
c) Binary file tmp/eaccelerator/d/1/eaccelerator-25992.098881 matches
In my php.ini the term "extension_dir" is write with ";" before but in my php info it's ok, I have the following line :
extension_dir /opt/lampp/lib/php/extensions/no-debug-non-zts-20060613
My question is :
Is-it normal eaccelerator_put function doesn't return true with function_exists('eaccelerator_put') for the Symfony test ?
How should I do for the checking script works on Xampp linux ?
Thanks a lot for your response.