please help: eaccelerator not caching!

shivahost

Verified User
Joined
Mar 7, 2013
Messages
176
Dear friends,

I installed eAccelarator from update.script and it seems everything is ok but always cached scripts = 1 , please help me to run it.

php build option: PHP: 5.3.22 as CGI with mail() header patch

Code:
[B]php -v[/B]

    PHP 5.3.22 (cli) (built: Mar 15 2013 16:14:37)
    Copyright (c) 1997-2013 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
    with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies


I think fastcgi is installd:

Code:
[B] /usr/local/php5/bin/php-cgi -v[/B]

    PHP 5.3.22 (cgi-fcgi) (built: Mar 15 2013 16:14:37)
    Copyright (c) 1997-2013 The PHP Group
    Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
    with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies


and in phpinfo:

Server API: CGI/FastCGI
 
in php.ini I have:

Code:
eaccelerator.cache_dir="/var/cache/eaccelerator"

and I think in this folder cache is created! there some folders with names: 0 , 1 , 2, ....., 9, a, b, c, d, e, f

and in this subfolders I see another folders with same names and there is cached file in them.

but in "control.php" shows: cached scripts = 1
 
i think you are using mod ruid2 or suphp on you node..
becuase eacclerator need 777 premission for cache folder maybe can't working fine to cache data
 
i think you are using mod ruid2 or suphp on you node..
becuase eacclerator need 777 premission for cache folder maybe can't working fine to cache data

cache in temp folder is ok! and file are created there. but in memory not!

how I can find that which mod is realy active? ruid2 or suphp oe fcgi?
 
how I can find that which mod is realy active? ruid2 or suphp oe fcgi?

There are at least two ways:

1. Root SSH

Code:
cd /usr/local/directadmin/custombuild
./build options | grep PHP -i

You might see something like

PHP: 5.3.23 as CGI without mail() header patch
phpMyAdmin: 3.5.7-all-languages
Replace "php.ini" with './build all' and './build php-ini': no

2. PHP phpinfo()

Create a script, let's say

phpinfo.php with a following content:

PHP:
<?php
phpinfo();


and open it in browser http://your-domain-is-here.com/phpinfo.php and check Server API line

For suPHP it would be

Code:
Server API     CGI/FastCGI
 
What version of custombuild are you using? If 1.1.x or 1.2.x, then it's suPHP.

eAccelerator will not work with suphp. Any php accelerator does not work with suphp.
 
Now I configured server with custombuild 2.0 , and fastcgi is active, APC works perfect now.

How I can install eaccelerator for php 5.3.23 now?
 
Back
Top